Htaccess
Revision as of 11:00, 22 September 2006 by Rrud(talk | contribs)

.htaccess (Hypertext Access) is the default name of Apache's directory-level configuration file. It provides the ability to customize configuration directives defined in Apache's main configuration file, to modify the access to and behavior of certain directories on our web server.

Creating .htaccess files

It's important that you use a text editor which does not place carriage returns at the end of lines, as these can cause problems when Apache is trying to read the files. Almost every text editor on Windows will stick these carriage returns in, so we recommend you [ssh] into charlotte.gac.edu and create your file with one of the many editors installed on the server, such as emacs, vi, pico, or nano.

Password-protecting directories

The most common reason for using a .htaccess file is to restrict access to a directory.

Restrict access to users on campus

Restrict access to a user

Restrict access to a group