29 Aug, 2007
The Correct 301 Redirect to a New Domain
Posted by: Stephan Miller In: Domains| Hosting| Programming
If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!
I have found a few different example on the web. The first one I used added a big, long, unnecessary query string to the url. The following one works without a hitch. Just change the .htaccess file in the main folder of your site to one containing this text. Of course, replace yournewdomain.com to the one you are redirecting to.
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.yournewdomain.com/$1 [R=301,L]Tags: 301 redirect, .htaccess




