I've made changes to tje pretty_url RewriteConds in wiki to fix incorrect syntax

Submit and proof-read articles for the documentation here. Anyone is welcome to contribute!
Post Reply
User avatar
tinhat
Forum Members
Forum Members
Posts: 65
Joined: Fri May 23, 2008 6:33 am
Location: Sydney, Australia

I've made changes to tje pretty_url RewriteConds in wiki to fix incorrect syntax

Post by tinhat »

Hi

I've modified quite a few pages in the documentation wiki to modify the RewriteCond statements relating to pretty_urls.

Previously, the docs had the following:

RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]

which I have changed to:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

Removing the [NC] (no case) flag.

From the Apache mod_rewrite manual:

This flag is effective only for comparisons between TestString and CondPattern. It has no effect on filesystem and subrequest checks.


This applies to all versions of apache 1.* and 2.*. See, for example:
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html

The [NC] flags on those RewriteCond will generally cause a [warn] message to be writting into the htppd error_log (of course this depends on logging level settings for the httpd).

I have updated the following wiki pages. These are the ones I could find via search that included these RewriteCond:

http://wiki.cmsmadesimple.org/index.php ... retty_URLs
http://wiki.cmsmadesimple.org/index.php ... l_Settings
http://wiki.cmsmadesimple.org/index.php ... And_Tricks
http://wiki.cmsmadesimple.org/index.php ... stallation
http://wiki.cmsmadesimple.org/index.php ... ettings/fr
http://wiki.cmsmadesimple.org/index.php ... ty_URLs/de
http://wiki.cmsmadesimple.org/index.php ... ty_URLs/nl
http://wiki.cmsmadesimple.org/index.php ... ettings/ru
Pierre M.

Re: I've made changes to tje pretty_url RewriteConds in wiki to fix incorrect sy

Post by Pierre M. »

Thank you !
You are gifting time to the support team because there will be less "what is this [warn] message ?" to deal with.

Pierre M.
Post Reply

Return to “Suggestions, Modifications & Corrections”