"If you can get along with everyone and everyone loves you, then you don't stand for much. A person who stands his ground for his principles and won't compromise his integrity is not loved by everyone."
- Larry Winget

How to Use 301 Redirects to Redirect a Domain

A 301 redirect is a status code your web server recognises as a web page or link that has permanently moved to another location. To find out what Matt Cutts of Google thinks of 301 redirects, please check out the following web pages:

301 Redirect a Domain

The simplest way to create 301 redirects for an entire web site would be to create .htaccess file with the command below and upload it to the public folder of your web site.

301-redirect1

The “#” sign is a comment syntax for the .htaccess file. In my example, I was redirecting my old blog, VincentRich.com, to MaverickWebCreations.com. The slash (/) after “redirect 301″ tells the Apache server to redirect all HTTP requests on VincentRich.com to MaverickWebCreations.com. Please note that the slash (/) behind the URL is very important! If you omit this, your redirects are going to be messed up.

301 Redirect Web Pages

Sometimes we want to redirect visitors to the new page on our new web site. If this is what you are trying to achieve, you need to enter 1 commands for every URL you wish to redirect.

301-redirect3

For my case, I decided that I wanted to redirect all my old blog posts to a specific blog post on MaverickWebCreations.com. The command for this is as follows:

redirect 301 /filename.html http://www.newdomain.com/filename.html

This would be a lot of work if you have a lot of URLs to redirect but it would be worth the trouble in the long run as you do not want to lose traffic.

301 Redirect HTTP Codes on HTML Pages

You may also do a 301 redirect on a HTML page as long as you include the HTTP status codes.

301-redirect2

301-redirect4

Wikipedia has a great article on how to do this. In fact, I created a file titled “index.html” for my old blog and included the 301 redirect status code at the top of the page to let the search engines know that my site has moved. However, this HTML page does not redirect visitors automatically.

Tagged As:

Posted by Vincent on 27 November 2009 1:05 PM in Search Engine Optimization You can leave a comment, or trackback from your own site. |

Similar Posts

Did You Enjoy This Post?

Subscribe to our blog through our RSS feed or email to receive updates on more posts like this. post on your favourite social networking or media site to let others know about this post. Help us generate more buzz by submitting/voting for this post with the following buttons.

Post a Comment


(Required)


(Required)