redirect domain names to different directories

Using a single web hosting account to host multiple sites

redirect domain names to different directories

Postby p8 » Sun Oct 13, 2002 4:12 am

Is it possible to redirect domain names to different directories?

Something like:

Code: Select all
#RewriteCond %{HTTP_HOST}     http://www.B.com  [NC]
#RewriteRule ^$            http://www.A.com/B [L]
p8
 

Postby Guest » Thu May 13, 2004 10:20 am

RewriteCond %{HTTP_HOST} ^(www\.)?domainb.com
RewriteCond %{REQUEST_URI} !^/domainb/
Rewriterule ^(.*)$ /domainb/$1 [L]
Guest
 

Postby Guest » Wed Jun 02, 2004 11:36 am

I found this useful - thanks for posting it...

kamm...
Guest
 

Postby seomike » Wed Jun 02, 2004 9:07 pm

You can always do a [R=301,L] redirect after your rule. That way a search engine will pick it up as a permanent redirect and pass page scores to the new page 8)
seomike
 
Posts: 331
Joined: Thu May 06, 2004 7:36 pm
Location: Dallas


Return to Domain Handling

Who is online

Users browsing this forum: No registered users and 18 guests

cron