My .htaccess file isn’t working. I have checked that it is in the root directory. I also verified that it’s code is correct. When I type random letters/numbers into the .htaccess I do not get a 500 error. When i open my apache error log, it gives me this error:
[Mon Jan 16 20:28:37 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Jan 16 20:28:41 2012] [notice] Digest: generating secret for digest authentication ...
[Mon Jan 16 20:28:41 2012] [notice] Digest: done
[Mon Jan 16 20:28:44 2012] [notice] Apache/2.2.14 (Unix) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l PHP/5.3.1 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
I don’t know what to do.
http.conf:
<Directory />
Options FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
</Directory>
There are a few possible reasons your random, invalid,
.htaccessfile would not cause an http error 500 (internal server error):.htaccess. The first character is a dot. The last character is a lower case ‘s’. Hidden extensions might cause problems because an incorrect file name could appear to be correct..htaccessfiles. If the configuration optionAllowOverrideis set toNonein the apache configuration files (for the specified domain), then Apache will not look for any.htaccessfiles.Also note that
.htaccessfiles are ignored when you access your files using thefile://protocol.Update
The paths used in
.htaccessrefer to file system paths, not url paths. Based on the.htaccesscontent you posted, nobody has access to any files on your webserver. I would suggest something like:Your
.htaccessfile should be in/path/to/webrootNote that you should change
/path/to/webrootto something sensible that matches your file system.