This will use case-insensitive matching for a subset of the entire URL. In regular expressions handled by PCRE , the (?i) turns on case-insensitivity, locally . Case-insensitive matching will be performed for the given capture, or from the point of occurrence of the ?i until the end of the pattern.

RewriteRule ^/Hello\.(?i)php$  /Bonjour.php

The above matches Hello.PHP, Hello.Php, and Hello.php, but not hello.php nor HELLO.Php

Last edited Jul 15, 2008 at 8:17 PM by Cheeso, version 1


No comments yet.