Error with RewriteCond in .htaccess about '-f' option when it is not present.
- by Tyler Crompton
Whenever I look at my error logs this is what I see:
RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
However, I am not using -f. I am still new to Apache stuff. This is what my .htaccess files looks like in the site's root directory:
# Use PHP5 Single php.ini as default
AddHandler application/x-httpd-php5s .php
Options -Indexes
SetEnv INCLUDES /home1/tylercro/public_html/includes/
SetEnv TZ America/Chicago
ErrorDocument 400 /400/
ErrorDocument 401 /401/
ErrorDocument 403 /403/
ErrorDocument 404 /404/
ErrorDocument 500 /500/
order allow,deny
deny from 69.28.58.33
deny from 95.24.184.87
deny from 95.108.
deny from 119.63.196.
deny from 123.125.71.
deny from 216.92.127.133
deny from 204.236.225.207
allow from all
RewriteEngine On
# Take off a the end script name if it is an index page.
RewriteCond %{REQUEST_URI} (.*)(index|default)\.\w{1,4}$ [NC]
RewriteRule .* %1 [R=301]
# Force "/" at end of URL if directory.
RewriteRule (.*)!(\.\w{1,5}$) $1 [R=301]