Sunday, January 29, 2006

� How to rename or move files without loosing your search engine ranking: the 301 redirect

� How to rename or move files without loosing your search engine ranking: the 301 redirect: "How to rename or move files without loosing your search engine ranking: the 301 redirect
On page redirection techniques, what works and what to avoid"

Not recommended solution 1: Duplicate content.
Not recommended solution 2: Custom error message.
Not recommended solution 3: An HTML Meta redirect.


The recommended redirect strategy - 301 Redirect

A 301 redirect is the most efficient, visitor friendly, robot (spider, crawler) friendly and search engine friendly solution around for web sites that are hosted on servers running Apache. If you are not sure, check with your hosting provider.

The code “301″ is interpreted as “moved permanently”. After the code, the URL of the missing or renamed page is noted, followed by a space, then followed by the new location or file name.

First of all, you’ll need to find the .htaccess file in the root directory of where all your web pages are stored. If there is no .htaccess file there, you can create one with Notepad or a similar application.

Make sure when you name the file that you remember to put the “.” at the beginning of the file name. This file has no tail extension.

If there is a .htaccess file already in existence with lines of code present, be very careful not to change any existing line unless you are familiar with the functions of the file.

Scroll down past all the existing code, leave a line space, then create a new line that follows this example:

redirect 301 /folder/page1.htm http://www.you.com/folder/custom_usb_drives.htm

It’s as easy as that. Save the file, upload it back into your web and test it out by typing in the old address to the page you’ve changed. You should be instantly and seamlessly transported to the new location.

Notes: Be sure not to add “http://www” to the first part of the statement - just put the path from the top level of your site to the page. Also ensure that you leave a single space between these elements:

redirect 301 (the instruction that the page has moved)
/folder/page1.htm (the original folder path and file name)
http://www.you.com/folder/custom_usb_drives.htm (new path and file name)
The same format applies not only to renamed files, but also to files moved to a different location.

How the search engines treat the 301

The 301 redirect is the safest way to preserve your rankings.

On the next indexing (crawling, spidering), the search engine robot will obey the rule indicated in your .htaccess file and index the new page name every time a link or its internal database tries to access the old page.

In the next update (again, this could take months), the old file name and path will be dropped and replaced with the new one.

Sometimes you may see alternating old/new file names during the transition period, along with some possible fluctuations in rankings as things settle. Don’t panic, this is normal.

Microsoft IIS servers
If you have access to the server, do this: In internet services manager, right click on the file or folder you wish to redirect. Select the radio titled “a redirection to a URL”. Enter the redirection page, check “The exact url entered above” and the “A permanent redirection for this resource”. Click “Apply”.

Google
Creative Commons Licence
This work is licensed under a Creative Commons License.