Apache Options -Indexes
Posted: Mon Nov 16, 2009 7:23 pm
Here is my current .htaccess file:
When I add the line Options -Indexes I get a 500 Internal Server Error, here is the dump from my log file:
Is this because I have not allowed AllowOverride or whatever that option is in the main httpd.conf file?
Code: Select all
RewriteEngine on
RewriteBase /
Options -Indexes
RewriteCond %{HTTP_HOST} ^pcspectra.com [NC]
RewriteRule ^(.*)$ http://www.pcspectra.com/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,NC,L]Code: Select all
[Mon Nov 16 19:17:32 2009] [alert] [client 192.168.1.104] /var/www/sites/pcspectra.com/www/.htaccess: Option Indexes not allowed here