Getting lots of NoCase option errors with Apache and mod_rewrite
Posted: Wed Feb 21, 2007 7:41 pm
Hi!
I'm running CMSMS 1.04 on apache 2.2.3, and PHP 5.1.6. In config.php, I have:
$config['assume_mod_rewrite'] = true;
$config['page_extension'] = '.html';
$config['internal_pretty_urls'] = true;
$config['use_hierarchy'] = true;
$config['query_var'] = 'page';
I'm using an .htaccess that I found through this forum. It reads:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /_cms/
# 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 ^(.+).html$ index.php?page=$1 [QSA]
Pretty URL's work fine, except my apache error log is filling up with tons of entries that look like this:
[Wed Feb 21 11:27:11 2007] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
[Wed Feb 21 11:27:11 2007] [warn] RewriteCond: NoCase option for non-regex pattern '-d' is not supported and will be ignored.
I've searched quite a bit, with no luck so far.
Question: How can I stop this error condition from occuring?
Any help or pointers would be VERY gratefully received!
Thank you!
I'm running CMSMS 1.04 on apache 2.2.3, and PHP 5.1.6. In config.php, I have:
$config['assume_mod_rewrite'] = true;
$config['page_extension'] = '.html';
$config['internal_pretty_urls'] = true;
$config['use_hierarchy'] = true;
$config['query_var'] = 'page';
I'm using an .htaccess that I found through this forum. It reads:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /_cms/
# 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 ^(.+).html$ index.php?page=$1 [QSA]
Pretty URL's work fine, except my apache error log is filling up with tons of entries that look like this:
[Wed Feb 21 11:27:11 2007] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
[Wed Feb 21 11:27:11 2007] [warn] RewriteCond: NoCase option for non-regex pattern '-d' is not supported and will be ignored.
I've searched quite a bit, with no luck so far.
Question: How can I stop this error condition from occuring?
Any help or pointers would be VERY gratefully received!
Thank you!