Adv. Web AS15: .htaccess & .htpasswd

Apache Logo

An important skill for a webmaster is the ability to password protect a directory. The easiest way to do that (and other cool tricks) is to learn how to create .htaccess and .htpasswd files. Here is a link that helps create those files HERE. Also, a tutorial that explains how to use .htaccess files to do some other tricks can be found HERE.

Working example of a redirect:
Redirect 301 /index.html http://student000.mreliot.com/wordpress/index.php

Another cool thing that an .htaccess file can do is redirect your homepage. Part of your assignment is to get rid of your old homepage, and REDIRECT visitors to your WordPress blog homepage. You can find a tutorial that explains “301 redirects” HERE.