Create a file called .htaccess and place in your root web folder with one of the follow declarations.

Copy and past the code between the line

Redirect a single page
————————————————————————
redirect 301 /old_page.htm http://www.you.com/new.htm
————————————————————————

Redirect all pages to a new extension (like asp to php)
————————————————————————
RewriteEngine on
RewriteBase /
RewriteRule (.*).asp$ /$1.php [L, R=301]
————————————————————————

Check out these posts too:

  1. Guide to Applying 301 Redirects with Apache
  2. On a Linux server, then see what htaccess can do for you
  3. Using htaccess Files for Pretty URLS
  4. Even more fun with htaccess
  5. How to Fake a Google Page Rank 10
  6. Two methods for auto tweeting
  7. Quickbooks Rocks!