search engine optimization

Page Specific 301 Redirects

Follow the simple code example below in order to implement a page specific 301 redirect. This is also a handy redirect for informing a search engine spiders that a web page has permanently moved.

Warning, you will be editing your .htaccess file, so please be careful and make a backup of the original just in case there is a problem.

First, download the .htaccess file via FTP. Next open the .htaccess file with a plain text editor such as notepad. If there’s already code in the file be sure you skip a line before adding the code below. Now copy and paste the following code into the .htaccess file;

(without the “<-- -->” part)

RedirectPermanent /old.html http://www.yoursite.com/new.html

Next, replace the “old_page” portion with your unique “page name”, save and upload.

Now when somebody requests old.html they will be automatically redirected to http://www.yoursite.com/new.html.

Note, be sure to include a space between the old page and new location portion, see below;
/old_page.html space http://www.yoursite.com/new_page.html

For more information about 301 redirects, please see http://httpd.apache.org/docs/2.0/mod/mod_alias.html#redirectpermanent

Bookmark to:
Add 'Page Specific 301 Redirects' to Del.icio.us Add 'Page Specific 301 Redirects' to digg Add 'Page Specific 301 Redirects' to FURL Add 'Page Specific 301 Redirects' to blinklist Add 'Page Specific 301 Redirects' to My-Tuts Add 'Page Specific 301 Redirects' to reddit Add 'Page Specific 301 Redirects' to Feed Me Links! Add 'Page Specific 301 Redirects' to Technorati Add 'Page Specific 301 Redirects' to Socializer 







Comments are closed.