Will this...

Using a single web hosting account to host multiple sites

Will this...

Postby rjonesx » Mon Aug 22, 2005 7:54 am

I am trying to make it so that whatever domain accesses the server is redirected to a folder of the same name.

Domain1.com goes to /domain1.com/
Mysite.com goes to /mysite.com/
www.GeorgeJetsen.org goes to /www.georgejetson.org/

would the below work...

RewriteEngine on
RewriteCond %{HTTP_HOST}
RewriteCond %{REQUEST_URI} !^/%{HTTP_HOST}/
RewriteRule ^(.*) {HTTP_HOST}/$1 [L]

I would, of course, turn RewriteEngine OFF in the individual folders.
Posts: 2
Joined: Fri Aug 19, 2005 12:08 pm

Return to Domain Handling

Who is online

Users browsing this forum: No registered users and 1 guest