Rewrite Condition error in logs
Posted: Sat Jun 23, 2007 8:59 am
Hi all,
I just thought I'd share this, in case anyone else has this problem ...
I use mod_rewirte for clean urls with the rules suggested in the cmsms documentation found somewhere ... they are as follows
RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
RewriteCond: NoCase option for non-regex pattern '-d' is not supported and will be ignored.
... so to get rid of the errors I had to change the following lines above to:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
(e.g. get rid of the [NC] behind these two conditions).
tina
I just thought I'd share this, in case anyone else has this problem ...
I use mod_rewirte for clean urls with the rules suggested in the cmsms documentation found somewhere ... they are as follows
It all works fine, expect my logs (Apache 2.2.0) are filling up with the following errors:RewriteEngine on
RewriteBase /
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
RewriteCond: NoCase option for non-regex pattern '-d' is not supported and will be ignored.
... so to get rid of the errors I had to change the following lines above to:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
(e.g. get rid of the [NC] behind these two conditions).
tina