Redirect domain to directory in other domain.

# Redirect all pages from olddomain.com
# to newdomain.com

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.olddomain.com$ [OR]
RewriteCond %{HTTP_HOST} ^olddomain.com$
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]

Posted

in

by

Comments

Leave a Reply