Web Site Redirection - How to Implement a 301 Redirect

You just created a new web site but want to pass on the search engine rankings of the old one to the new one. What is the most effective and spider/visitor friendly strategy to implement your web site redirection? You should use a 301 redirect.

What is a 301 redirect?

It is used when you want to redirect your web site or web pages. 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.

Requirements for using a 301 redirect

Apache server.
Most hosting services used these days have Apache servers. Check with your host if you are not sure.

.htaccess file
When a search engine spider requests a web page, your web server will check for an .htaccess file. The .htaccess file contains specific directions that are processed then sent back to the browser.

How do I implement a 301 redirect?

1. Create an .htaccess file - you can use Notepad to create the file. Remember to insert a period at the beginning of the file name with no extension at the end (ie .htaccess).

2. Create a line of code that reads like this:

Redirect permanent / http://www.domainname.com/

The first "/" indicates that everything from the top level of the site down should be redirected.

All current links within the search engine results from the old site will redirect to the top level of your new site.

If you already have an .htaccess file on your server, open it up in Notepad and look for lines of code that are there. If lines of code are present, don't change any of them but leave a space, then insert the above 301 redirect code.

3. Save the .htaccess file to your root directory and upload it to your server.

4. Test it out by typing in the old web site address. You should immediately be redirected to your new web site address.

Redirecting a Web Page

The above example shows how to redirect a whole web site. What if you want to just redirect a web page that you have changed but want to keep the rankings of the old page?

Follow the same steps as above but write the code like this:

redirect 301 /old/old.htm http://www.you.com/new.htm

/old/old.htm (the original folder path and file name)

http://www.you.com/new.htm (new path and file name)

Note:
When the search engine spiders visit your old web site or web pages, they will automatically be redirected to the new web site or web page.

Conclusion:
It may take several weeks or months for the old rankings to be passed on to the new site. Therefore don't remove your old domain name, web site or web pages just yet.

Herman Drost is the Certified Internet Webmaster (CIW) owner and author of http://www.iSiteBuild.com - Affordable Web Site Design and Web Hosting. Subscribe to his "Marketing Tips" newsletter for more original articles. subscribe@isitebuild.com. Read more of his in-depth articles at: http://www.isitebuild.com/articles

In The News:


pen paper and inkwell


cat break through


What You Should Ask a Web Designer Before You Hire Him

You've thought about it and you're ready to go. You're... Read More

The Psychology of Color in Web Design

Persons engaged in website design, here's a scoop for you!... Read More

Give People What They Want And Watch Your Profits Soar!

Do you know why the majority of people use the... Read More

Web Coach Tip: The Single Most Important and CRUCIAL Element of Your Web Site

Here's the single most important part of your website: YOUR... Read More

Save Time and Boost Profits with Free Content

Public domain gives you a head start creating ebooks, ecourses,... Read More

Revising Your Site - What Happened To My Search Engine Placement?

As of September, Smartads went through what so many have... Read More

How Do You Make A Website?

No, that's not the real question. The real question is... Read More

Testament To Testimonials

We have all seen websites showcasing their testimonials either spread... Read More

You Had Me At the Search Engine

You've likely heard of the movie, Jerry Maguire, with its... Read More

Fast Web Design For The Skint Webmaster

About two years ago, I had a go at commercial... Read More

How Does Your Website Measure Up?

Does your website make a good first impression? Is the... Read More

Website Conversion Secrets Revealed

In my last article entitled, Maximizing The True Value Of... Read More

HTML - A Website Language Explained - For Over 35s

This is a very perfunctory look at the website code... Read More

Quality Web Copy is the Key to Success

Many websites make the mistake of being all flash and... Read More

Cheap Web Design

If you think it's simply a case of who will... Read More

What I Look For In a Website

As my occupation is that of a proofreader, one of... Read More

A Website Checklist

If you've just finished building your new website (or revamping... Read More

Increase Sales on Your Website! Use Graphics!

How many times have you clicked on a website only... Read More

Why Content is King of Website Design

If there's one thing that most web site developers can... Read More

Creating a Favicon

Once, I attempted to create a favicon (the little graphic... Read More

How To Improve The Professional Look And Feel Of Your Website

Projecting a professional image is paramount to your website's success.... Read More

Creating Personal Web Sites (Part 2)

This is the second part of a two-part article about... Read More

Differences between XP Icons and MAC Icons

The icons in an application are the soul of the... Read More

Learn the Truth about Your Web Design Company by Its Portfolio

When you start building your online business and search for... Read More

Building Your First Web Site?

Before doing anything on the technical side, you need some... Read More

15 Website Elements That Attract Visitors

Here is a quick list of components that make a... Read More

How to Double Your Online Sales Without Spending Another Dime on Advertising

Learning how to convert visitors to your web site into... Read More

Owning Your Own Web Site Is A Must

Owning your own website is a must if you are... Read More

Free Website Templates - Top 10 Things You Need to Know

When building your website you might not have a large... Read More

Becoming A Website Designer

The ability to create simple, attractive and functional web pages... Read More

Be Inspired to Create Better Websites

Being a writer, when I was asked to do some... Read More

Converting Print Advertising For Use On The Web - A How-To

Contrary to the beliefs of some, advertising for web and... Read More

If Content is King who is Queen?

It's been said again and again, when it comes to... Read More