Redirecting the search engine friendly way.

If like me you’ve had to move pages on your website around, changing their names resulting in search engine listings leading to non existent pages then there are a couple of easy ways to help redirect your visitors, both human and spiders back to the right location.

The best way to do this is via a 301 Permanent Redirect, personally I do this using .htaccess as a means of connecting up visitors to pages on my previous site to the same relevant content on my new site. So how do you do it?

Well it’s pretty straight forward! First of all if you already have a htaccess file due to using WordPress or because of the way your hosting handles Page 404s then copy it to your computer and open it in NotePad. If you don’t then just open NotePad.

Say you used to have a page on your website called http://www.mywebsite.com/oldpage.html and you have now moved it to a new location, say http://www.mywebsite.com/newpage.html. To do this you would write the following in your htaccess file. (All on one line)

Redirect 301 /oldpage.html http://www.mywebsite.com/newpage.html

It’s really that simple! type Redirect 301 /theoldpage.html then type the new URL in full. Now save your htaccess again, or if it is a new htaccess save as .htaccess and upload to the root of your server. Ensure that it does not have a txt extension when it is uploaded and is simply named “.htaccess”. Make sure you don’t mess up anything else that was previously written in the .htaccess file it may be very important!

The Redirect 301 command is a permanent move, if you are only moving things for a short while you can use Redirect 302 which is written in exactly the same way.

Using this method is the most Search Engine and user friendly way of redirecting, although you should try and avoid doing it as much as you can. You MUST not use Javascript or Meta redirecting for a page, that is a big no-no. It is not search engine friendly, and they may not work in a users browser. You may also be penalized by search engines. With 301 redirecting you will not be penalized and your PageRank will be transferred to the new page.

 

  • Search Engine Optimization Tips Recently a couple of my clients have asked me about getting their websites to the top of the search engine listings, and I’ve had to...
  • Searchme Visual Search Yesterday I looked at supposed Google killer Cuil, to much disappoint. Today another search site, I don’t think they are going to oust Google any...
  • The “Do Not’s” of SEOing How not to SEO! Following my article on how to SEO I thought I should write a second one telling you how not to! Firstly...
  • Robots.txt A Robots.txt is especially important for those of us with WordPress or similar CMS that have directories we don’t really want Google poking its spider nose...
  • Number Crunching – What Stats Software to Use? It’s always nice to know when you create a website who is using it, why, how they got there and how long they spent! Its...

Tags: , , , ,

If you found this post helpful, or you have your own suggestions, why not leave a reply!