How to create dynamic subdomain using PHP and htaccess?
snippet in htaccess

How to create dynamic subdomain using PHP and htaccess?

user2971

<VirtualHost *:80>
    ServerName www.example.com
    ServerAlias example.com *.example.com
    DocumentRoot /www/domain
</VirtualHost>