.htaccess: Options not allowed here

Earlier when mirroring a Zen Cart online store for a customer to work on some custom modifications for him I ran into an error when attempting to visit the site in a web browser. The issue relates to Rewrite rules in the .htaccess file which I was able to easily track down by viewing the Apache error logs for the site. Below is more information regarding the error located in the logs and how I was able to resolve the problem.

Apache Error Logs Showing htaccess Options Error:

[Tue Jan 15 10:11:53 2011] [alert] [client 192.168.1.200] /var/www/zen/.htaccess: Options not allowed here
[Tue Jan 15 10:11:53 2011] [alert] [client 192.168.1.200] /var/www/zen/.htaccess: Options not allowed here
[Tue Jan 15 10:11:55 2011] [alert] [client 192.168.1.200] /var/www/zen/.htaccess: Options not allowed here
[Tue Jan 15 10:11:55 2011] [alert] [client 192.168.1.200] /var/www/zen/.htaccess: Options not allowed here

To resolve this error you could simply open up what is allowed to occur via .htaccess files. This configuration will either be in the httpd.conf Apache configuration file or the configuration file for the virtual host depending on how the Apache web server is configured. You will want to search for the AllowOverride configuration setting which when modified can be a security risk but can also resolve the issue in the above scenario.

Apache AllowOverride By htaccess Files:

AllowOverride All

Whatever the options are after AllowOverride replace them all with the word “All” as shown in the above example. Some of the possible options that may follow AllowOverride include FileInfo, AuthConfig, Limit, Indexes, etc. These will all still be allowed when replacing them with the word All in the configuration file for this specific site.


List Price: $34.99 USD
New From: $19.39 USD In Stock
Used from: $7.97 USD In Stock


List Price: $29.99 USD
New From: $29.99 USD In Stock
Used from: $28.00 USD In Stock

Share