Setting subdomains using htaccess

Posted by milan on Stack Overflow See other posts from Stack Overflow or by milan
Published on 2010-04-20T07:03:55Z Indexed on 2010/04/20 7:23 UTC
Read the original article Hit count: 186

Filed under:
|

Hi all

I want to set a subdomain for all site users, like www.companyname.mydomain.com I would like to use htaccess for this.

when somebody requests www.companyname.mydomain.com it should redirect to myfile.php?name=companyname

How can I achieve this using an htaccess file ?

Thanks for the consideration.

© Stack Overflow or respective owner

Related posts about apache

Related posts about .htaccess