Blog «REQUEST_FILENAME»)
Apache Error HTTPD: NoCase option for non-regex pattern is not supported and will be ignored.
An Apache error came to fill all our Apache error_logs. We (programmers) tend to use the [NC] flag in the .htaccess files that we create so that Apache doesn't consider the case when using RewriteCond.
The error is:
[warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored. [warn] RewriteCond: NoCase option for non-regex pattern '-d' is not supported and will be ignored.
So instead of using in .htaccess:
RewriteCond %{REQUEST_FILENAME} !-f [NC,OR]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
prefer to use:
RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_FILENAME} !-d
Another (yet better!) solution is to use:
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule "." - [skip=100]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule "." - [skip=100]
Categories
All articles, Design, E-Commerce, Free stuff, Internal, Mobile, Web, Web Marketing,
Tags
Sparko, Montréal, java, JCCM, médias sociaux, twitter, Agence de développement web, apple, Entrepreneurs, Entrepreneurship, facebook, htaccess, la presse, marketing, médias, publicité, rewriteCond, social media, accents, accesnotaire.com,

0