cupid
Jul 12th 2006, 8:57 am
I have the following:
domain2.domain1.com
Need to redirect from:
domain2.domain1.com -> www.domain2.com
How do I do this?
Mystique
Jul 12th 2006, 9:10 am
Add to your .htaccess file:
Redirect /domain2.domain1.com http://www.domain2.com
That does the trick ;)
for Search Engine purposes you can instruct them adding 301 if this is a permanent redirection
Redirect 301 /domain2.domain1.com http://www.domain2.com
Jean-Luc
Jul 12th 2006, 9:54 am
I would use this .htaccess in domain1.com :Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain2.domain1.com$
RewriteRule ^(.*) http://www.domain2.com/$1 [QSA,L,R=301]
Jean-Luc
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.