Jump to content

NoCase option for non-regex pattern '-f'/'-d' is not supported


son

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...