Apache's .htaccess allows a wide range of useful web server behaviours to be implemented, the most popular of which are provision of custom error pages, and password protection of directories. This tutorial gives a brief lesson in how to implement these two useful types of service.