Link to home
Create AccountLog in
Avatar of cnxmax
cnxmax

asked on

Can I have htaccess rewrite match case insensitive?

Have the following rule in .htaccess:

RewriteRule !\.(jpg|png|gif|php|pdf)$ index.php\?xName=error&xType=htm&%1

Works great, but I need it to match any letter case. For example:

jpeg
JPEG
Jpeg
jpEg

Do I need to provide every combination or is there a way regular expressions can match case insensitive.
ASKER CERTIFIED SOLUTION
Avatar of Terry Woods
Terry Woods
Flag of New Zealand image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of cnxmax
cnxmax

ASKER

Thank you!