Stephan Miller

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: ,

Share/Save/Bookmark

No Responses to "The Correct 301 Redirect to a New Domain"

Comment Form

WTFMO



Flickr PhotoStream

  • Shozu Desktop
  • IMAGE_012
  • IMAGE_006
  • Highlight Midwest

About

This is my blog about building sites, traffic and using those to make money from ecommerce sites, affiliate programs and blogging.

Subscribe By Email



The One and Only Blogging Magazine

Popular Posts