son Posted February 22, 2013 Share Posted February 22, 2013 Hi there, In a .htaccess with rewrite rules to make URLs more user-friendly I want to exclude 'real' files and folders from rewrite rules and have the following entries:RewriteCond %{REQUEST_FILENAME} -f [NC,OR]RewriteCond %{REQUEST_FILENAME} -d [NC]before my actual rewrite rules. It works fine, but I now found in error log the following warnings:RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignoredRewriteCond: NoCase option for non-regex pattern '-d' is not supported and will be ignored Why would pattern -f and -d not be supported? I have this from Apache Org website which states:You can perform various file attribute tests:'-d' (is directory)Treats the TestString as a pathname and tests whether or not it exists, and is a directory.'-f' (is regular file)Treats the TestString as a pathname and tests whether or not it exists, and is a regular file. Any ideas? Son Link to comment Share on other sites More sharing options...
justsomeguy Posted February 22, 2013 Share Posted February 22, 2013 The error messages make it sound like an issue when you use those flags with the nocase option. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now