how can I set sub domains using htaccess ?
Posted
by user41110
on Server Fault
See other posts from Server Fault
or by user41110
Published on 2010-04-21T12:04:06Z
Indexed on
2010/04/21
12:13 UTC
Read the original article
Hit count: 219
apache
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 purpose.
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.
© Server Fault or respective owner