Redirect OLD site to NEW using htaccess
To redirect old site to new url using .htacces, use following
1 2 3 |
RewriteCond %{HTTP_HOST} ^old-url.com$ [OR] RewriteCond %{HTTP_HOST} ^www.old-url.com$ RewriteRule (.*)$ http://www.new-url.com/$1 [R=301,L] |
See htaccess