htaccess.html revision b060f13c2d02c9d89fa051bfcd644d562e2abe95
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <meta name="generator" content="HTML Tidy, see www.w3.org" />
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#000080"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte alink="#FF0000">
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <!--#include virtual="header.html" -->
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <!-- INDEX BEGIN -->
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <li><a href="#what">What they are/How to use them</a></li>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <li><a href="#when">When (not) to use them</a></li>
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan <li><a href="#how">How directives are applied</a></li>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <li><a href="#auth">Authentication example</a></li>
93c20f2609342fd05f6625f16dfcb9348e7977f2Sukumar Swaminathan <li><a href="#ssi">Server side includes</a></li>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <li><a href="#troubleshoot">Troubleshooting</a></li>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <!-- Index End -->
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <td valign="top"><strong>Related Modules</strong><br />
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <a href="/mod/mod_includes.html">mod_includes</a><br />
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan <a href="/mod/mod_mime.html">mod_mine</a><br />
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan <td valign="top"><strong>Related Directives</strong><br />
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan <a href="/mod/core.html#accessfilename">AccessFileName</a><br />
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan <a href="/mod/core.html#allowoverride">AllowOverride</a><br />
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan <a href="/mod/core.html#options">Options</a><br />
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan <a href="/mod/mod_mime.html#addhandler">AddHandler</a><br />
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan <a href="/mod/core.html#sethandler">SetHandler</a><br />
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan <a href="/mod/core.html#authtype">AuthType</a><br />
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan <a href="/mod/core.html#authname">AuthName</a><br />
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <a href="/mod/mod_auth.html#authuserfile">AuthUserFile</a><br />
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <a href="/mod/mod_auth.html#authuserfile">AuthGroupFile</a><br />
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan <a href="/mod/core.html#require">Require</a><br />
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <h2><a id="what" name="what">What they are/How to use them</a></h2>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <p>.htaccess files (or "distributed configuration files") provide a way
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte to make configuration changes on a per-directory basis. A file,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte containing one or more configuration directives, is placed in a
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte particular document directory, and the directives apply to that
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte directory, and all subdirectories thereof.</p>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <p>Note: If you want to call your .htaccess file something else, you can
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte change the name of the file using the AccessFileName directive. For
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte example, if you would rather call the file .config then you can put the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte following in your server configuration file:</p>
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan<blockquote><table cellpadding="10"><tr><td bgcolor="#eeeeee"><code>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte AccessFileName .config
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <p>What you can put in these files is determined by the AllowOverride
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte directive. This directive specifies, in categories, what directives will
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte be honored if they are found in a .htaccess file. If a directive is
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte permitted in a .htaccess file, the documentation for that directive will
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte contain an Override section, specifying what value must be in
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte AllowOverride in order for that directive to be permitted.</p>
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan <p>For example, if you look at the docs for the AddDefaultCharset
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte directive, you will find that it is permitted in .htaccess files. (See
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte the Context line in the directive summary.) The Override line reads
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte "FileInfo". Thus, you must have at least "AllowOverride FileInfo" in
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte order for this directive to be honored in .htaccess files.</p>
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan<blockquote><table cellpadding="10"><tr><td bgcolor="#eeeeee"><code>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Context: server config, virtual host, directory, .htaccess<br>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Override: FileInfo
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <p>If you are unsure whether a particular diretive is permitted in a
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte .htaccess file, look at the documentation for that directive, and check
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte the Context line for ".htaccess"</p>
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan <h2><a id="when" name="when">When (not) to use .htaccess files</a></h2>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <p>In general, you should never use .htaccess files unless you don't have
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte access to the main server configuration file. There is, for example, a
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte prevailing misconception that user authentication should always be done
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte in .htaccess files. This is simply not the case. You can put user
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan authentication configurations in the main server configuration, and this
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan is, in fact, the preferred way to do things.</p>
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan <p>.htaccess files should be used in a case where the content providers
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan need to make configuration changes to the server on a per-directory
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan basis, but do not have root access on the server system. In the event
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan that the server administrator is not willing to make frequent
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan configuration changes, it might be desirable to permit individual users
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan to make these changes in .htaccess files for themselves.</p>
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan <p>However, in general, use of .htaccess files should be avoided when
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan possible. Any configuration that you would consider putting in a
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan .htaccess file, can just as effectively be made in a <Directory>
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan section in your main server configuration file.</p>
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan <p>There are two main reasons to avoid the use of .htaccess files.</p>
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan <p>The first of these is performance. When AllowOverride is set to allow
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan the use of .htaccess files, Apache will look in every directory for
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan .htaccess files. Thus, permitting .htaccess files causes a performance
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan hit, whether or not you actually even use them! Also, the .htaccess file
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan is loaded every time a document is requested.</p>
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan <p>Further note that Apache must look for .htaccess files in all
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan higher-level directories, in order to have a full complement of
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan directives that it must apply. (See section on how directives are
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan applied, below.) Thus, if a file is requested out of a directory
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan /www/htdocs/example, Apache must look for the following files:</p>
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan<blockquote><table cellpadding="10"><tr><td bgcolor="#eeeeee"><code>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <p>And so, for each file access out of that directory, there are 4
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan additional file-system accesses, even if none of those files are present.
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan (Note that this would only be the case if .htaccess files were enabled
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte for /, which is not usually the case.)</p>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <p>The second consideration is one of security. You are permitting users
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte to modify server configuration, which may result in changes over which
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte you have no control. Carefully consider whether you want to give your
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte users this privilege.</p>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <p>Note that it is completely equivalent to put a .htaccess file in a
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte directory /www/htdocs/example containing a directive, and to put that
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan same directive in a Directory section <Directory
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte /www/htdocs/example> in your main server configuration:</p>
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan<blockquote><table cellpadding="10"><tr><td bgcolor="#eeeeee"><code>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte<blockquote><table cellpadding="10"><tr><td bgcolor="#eeeeee"><code>
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan<Directory /www/htdocs/example><br>
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan</Directory>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <p>However, putting this configuration in your server configuration file
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte will result in less of a performance hit, as the configuration is loaded
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte once when Apache starts, rather than every time a file is requested.</p>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <p>The use of .htaccess files can be disabled completely by setting the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte AllowOverride directive to "none"</p>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte<blockquote><table cellpadding="10"><tr><td bgcolor="#eeeeee"><code>
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan AllowOverride None
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <h2><a id="how" name="how">How directives are applied:</a></h2>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <p>The configuration directives found in a .htaccess file are applied to
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte the directory in which the .htaccess file is found, and to all
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte subdirectories thereof. However, it is important to also remember that
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte there may have been .htaccess files in directories higher up. Directives
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte are applied in the order that they are found. Therefore, a .htaccess file
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte in a particular directory may override directives found in .htaccess
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte files found higher up in the directory tree. And those, in turn, may have
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte overriden directives found yet higher up, or in the main server
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan configuration file itself.</p>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <p>In the directory /www/htdocs/example1 we have a .htaccess file
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte containing the following:</p>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte<blockquote><table cellpadding="10"><tr><td bgcolor="#eeeeee"><code>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteOptions +ExecCGI
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <p>(Note: you must have "AllowOverride Options" in effect to permit the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte use of the "Options" directive in .htaccess files.)</p>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <p>In the directory /www/htdocs/example1/example2 we have a .htaccess
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte file containing:</p>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte<blockquote><table cellpadding="10"><tr><td bgcolor="#eeeeee"><code>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteOptions Includes
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <p>Because of this second .htaccess file, in the directory
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte /www/htdocs/example1/example2, cgi execution is not permitted, as only
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Options Includes is in effect, which completely overrides any earlier
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan setting that may have been in place.</p>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <h2><a id="auth" name="auth">Authentication example</a></h2>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <p>If you jumped directly to this part of the document to find out how to
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan do authentication, it is important to note one thing. There is a common
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte misconception that you are required to use .htaccess files in order to
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte implement password authentication. This is not the case. Putting
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte authentication directives in a <Directory> section, in your main
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte server configuration file, is the preferred way to implement this, and
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte .htaccess files should be used only if you don't have access to the main
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte server configuration file. See above for a discussion of when you should
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte and should not use .htaccess files.</p>
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan <p>Having said that, if you still think you need to use a .htaccess file,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte you may find that a configuration such as what follows may work for
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <p>You must have "AllowOverride AuthConfig" in effect for these
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte directives to be honored.</p>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte<blockquote><table cellpadding="10"><tr><td bgcolor="#eeeeee"><code>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte AuthType Basic<br>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte AuthName "Password Required"<br>
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan AuthGroupFile /www/passwords/group.file<br>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Require Group admins
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <p>Note that AllowOverride AuthConfig must be in effect for these
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte directives to have any effect.</p>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <p>Please see the authentication tutorial for a more complete discussion
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte of authentication and authorization.</p>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <p>Another common use of .htaccess files is to enable Server Side
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Includes for a particular directory. This may be done with the following
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte configuration directives, placed in a .htaccess file in the desired
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte directory:</p>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte<blockquote><table cellpadding="10"><tr><td bgcolor="#eeeeee"><code>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Options +Includes<br>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte AddHandler server-parsed shtml
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <p>Note that AllowOverride Options and AllowOverride FileInfo must both
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte be in effect for these directives to have any effect.</p>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <p>Finally, you may wish to use a .htaccess file to permit the execution
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan of CGI programs in a particular directory. This may be implemented with
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte the following configuration:</p>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte<blockquote><table cellpadding="10"><tr><td bgcolor="#eeeeee"><code>
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan Options +ExecCGI<br>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte AddHandler cgi-script cgi pl
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <p>Alternately, if you wish to have all files in the given directory be
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte considered to be CGI programs, this may be done with the following
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte configuration:</p>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte<blockquote><table cellpadding="10"><tr><td bgcolor="#eeeeee"><code>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Options +ExecCGI<br>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte SetHandler cgi-script
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <p>Note that AllowOverride Options must be in effect for these directives
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte to have any effect.</p>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <h2><a id="troubleshoot" name="troubleshoot">Troubleshooting</a></h2>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <p>When you put configuration directives in a .htaccess file, and you
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte don't get the desired effect, there are a number of things that may be
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte going wrong.</p>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <p>Most commonly, the problem is that AllowOverride is not set such that
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte your configuration directives are being honored. Make sure that you don't
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte have a AllowOverride None in effect for the file scope in question. A
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte good test for this is to put garbage in your .htaccess file and reload.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte If a server error is not generated, then you almost certainly have
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte AllowOverride None in effect.</p>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <p>If, on the other hand, you are getting server errors when trying to
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte access documents, check your Apache error log. It will likely tell you
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte that the directive used in your .htaccess file is not permitted.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Alternately, it may tell you that you had a syntax error, which you will
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte then need to fix.</p>