Code Snippets To Implement 301 Redirect

Code Snippets To Implement 301 Redirect

Source: Woork Up
Excerpt:

Sometimes, if you use a CMS like WordPress or Movable Type, you could need to change the URL structure in use on your blog with a more SEO friendly structure.
This is a big problem especially if your site is already indexed and some posts are popular on search engines: if you change the URL structure, all your posts will be unavailable at the old URLs and, in this way, you risk to lose visitors and ranking.

A safe way to change the URL structure of your blog, without losing visitors and ranking, is to apply a permanent redirect to your pages (301 redirect). This redirect says to the search engine bot “the current page has permanently moved to a new URL” so that the bot can follow the new link and properly index it.

Continue Reading »

Add Comment

Put code snippets inside language tags:
[language] [/language]

Examples:
[javascript] [/javascript]
[actionscript] [/actionscript]
[csharp] [/csharp]

See here for supported languages.

Javascript must be enabled to submit anonymous comments - or you can login.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.