CMS Made Simple Forums
https://forum.cmsmadesimple.org/

I've made changes to tje pretty_url RewriteConds in wiki to fix incorrect syntax
https://forum.cmsmadesimple.org/viewtopic.php?f=16&t=22737
Page 1 of 1

Author:  tinhat [ Mon Jun 09, 2008 6:19 pm ]
Post subject:  I've made changes to tje pretty_url RewriteConds in wiki to fix incorrect syntax

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:

\$1:
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

Author:  Pierre M. [ Wed Jun 11, 2008 5:09 pm ]
Post subject:  Re: I've made changes to tje pretty_url RewriteConds in wiki to fix incorrect sy

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.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/