Jump to content
Sign in to follow this  
son

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

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...