Subdomain does not work

Hi,

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




                                'http://<url>.mydomain.com/'=>'company/index',

                                'http://<url>.mydomain.com/contact.html'=>'company/contact',    

                                'http://<url>.mydomain.com/products.html'=>'company/products',



Is there anything need to change in .htaccess file?

Any help?




'http://<url:\w+>.mydomain.com/'=>'company/index',

'http://<url:\w+>.mydomain.com/contact'=>'company/contact',    

'http://<url:\w+>.mydomain.com/products'=>'company/products',



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

Reference:

What’s your end goal? What happens when you go to something.mydomain.com? 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.