Forum Moderators: phranque

Message Too Old, No Replies

case insensitivity

how to cas insesitive

         

WhosAWhata

10:47 pm on Apr 27, 2004 (gmt 0)

10+ Year Member



is mod_rewrite by default case insensitive?
if not how can i make it so?

ie.
site.com
sIte.com
SiTe.CoM
SITE.COM
SItE.CoM

all should mean the same thing in a %{HTTP_HOST} request...

coopster

11:05 pm on Apr 27, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



On the RewriteCond Directive [httpd.apache.org] you can specify [NC]


RewriteCond TestString CondPattern

'nocase¦NC' (no case)
This makes the test case-insensitive, i.e., there is no difference between 'A-Z' and 'a-z' both in the expanded TestString and the CondPattern. This flag is effective only for comparisons between TestString and CondPattern. It has no effect on filesystem and subrequest checks.