Subdomain does not work


I am creating dynamic subdomains based on rules but unsuccessful. following is my code




Is there anything need to change in .htaccess file?

Any help?




And also you need to have an wildcard for your domain DNS record, so that to point to


What’s your end goal? What happens when you go to I assume you’re trying to display different content based on the subdomain?

I have done it.

Goal is to have users custom page design and its working fine.