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!

link|improve this question
1  
Sounds like a potential question for Server Fault – KronoS Aug 31 '10 at 16:46
This sounds like a job for mod_rewrite! – sysadmin1138 Aug 31 '10 at 17:13
feedback

migrated from superuser.com Aug 31 '10 at 18:56

This question came from our site for computer enthusiasts and power users.

1 Answer

see this link may be help you

link|improve this answer
feedback

Your Answer

 
or
required, but never shown