Virtual Subdomains

Posted by Dave P on Server Fault See other posts from Server Fault or by Dave P
Published on 2010-08-31T16:44:18Z Indexed on 2012/11/14 23:03 UTC
Read the original article Hit count: 174

Filed under:
|
|

I would like to manage subdomains exclusively through .htaccess.

I am able to catch subdomains that I set up - for example, support.testsite.com - currently, I redirect that to testsite.com/support.

What I would like to do is retain the subdomain, even after the redirect - so support.testsite.com seems to stay in the address bar for the user, even though it is actually located at testsite.com/support.

Should I maintain another .htaccess file in /support that rewrites the address?

Thanks!

© Server Fault or respective owner

Related posts about apache2

Related posts about mod-rewrite