301 Redirect

301 redirect is the most efficient, spider/visitor SEO friendly method for webpage redirection for web servers running apache. It is easy to implement and it should preserve your search engine rankings for that particular page. The code "301" is interpreted as "moved permanently". If you have to change file names or move pages around, it's the safest option.

You can do a 301 redirect with PHP as follows:

PHP:
  1. <?php
  2. header("HTTP/1.1 301 Moved Permanently");
  3. header("Location: http://www.bradino.com");
  4. ?>

You can also do this in Apache using an htaccess file as follows:

Simple create a .htaccess file and put the follwoing entries:

Redirect 301 /pro http://bradino.com/php
Redirect 301 /web/portfolio http://bradino.com/php

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • Reddit
  • Furl
  • NewsVine
  • Simpy
  • Slashdot
  • Spurl
  • StumbleUpon
  • YahooMyWeb
  • TailRank

Home | Apache | 301 Redirect