[nylug-talk] IIS/Windows to Apache/Linux conversion problems (case insensitivity)

Marco Romeny marco.romeny at gmail.com
Wed Jul 11 18:45:10 EDT 2007


On 7/11/07, Peter C. Norton <spacey-nylug at lenin.net> wrote:
> On Wed, Jul 11, 2007 at 05:27:52PM -0400, Chandhee Thala wrote:

> So something like:
>
> RewriteMap   lowercase    int:tolower
> RewriteMap   uppercase    int:toupper
>
> RewriteRule /([A-Za-z])(.*)/${uppercase:$1}${lowercase:$2}
>
> should work with a very minimal overhead. I'm not sure about the
> "greediness" of the regular expression above, so it need to be tested.
>

And asides the fact that this has the formentioned problems with actually
not fixing the root roblem, you might want to add some sort of extra logging.
Don't remeber how that was done without extensive reading of the manual,
but I think you can set an environment variable at the end of the rule above
and then use it in the logs together wit the referer...

RewriteRule (blablah) /$1 MISCASED=true

Kind of...




-- 
+++++++++++++++++++++++
Marco ter Haar Romeny
Email:marco.romeny at gmail.com
Tel: +1 917 945 2978


More information about the nylug-talk mailing list