The .htaccess file can
be placed in one or more of your /www/domainname-www
subdirectories. Among other things, this file can be used to
restrict access to other files and web pages. When a
request for a web page has been made, the web server first
checks for an .htaccess file. The server begins this check by
looking for .htaccess in the root of the current web
directory, and on down the directory tree until it reaches the
the directory where the requested file resides. Since the
placement of the .htaccess file determines when it's been
executed, this fact can be used to restrict access only in
certain subdirectories.
|