Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Secondary Domain Redirect

Status
Not open for further replies.

Mag0007

MIS
Feb 15, 2005
829
US
I have secondary domain called "foo.domain.com" and I would like to redirect that to "domain.com/foo" , how can I do that?

Thanks!
 
This should do the trick. Basically any accessing that url will be intercepted and the url the client provided will be re-written and the client sent to the alternate site.

<LIMIT GET>
RewriteEngine On
RewriteRule ^/ </LIMIT>


Michael

WarpZero Technologies
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top