.htaccess Reference

.htaccess Simple 301 redirect using mod_alias

To do redirects in the Apache webserver you can of course use use mod_rewrite, but if you don't need a lot of complexity the simpler way to do it is to use mod_alias.

Documentation:

http://httpd.apache.org/docs/current/mod/mod_alias.html#redirect

Quick example - create a .htaccess and enter the following:

.htaccess Quick password protection

.htaccess file:
[x]