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,
. 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