Reputation: 359
I'm trying to perform a redirect for one of my directory's that has a mixture of uppercase and lower case characters. However the uppercase characters are causing issues.
For example attempting the following redirect works correctly:
RewriteRule ^mydirectory\/(.*)$$ "http\:\/\/www\.google\.com\/" [R=301,L]
However the directory i'm trying to redirect is has a mixture of uppercase and lowercase i.e
RewriteRule ^MyDirectory\/(.*)$$ "http\:\/\/www\.google\.com\/" [R=301,L]
However, this does not redirect and is simply ignore.
Any suggestion on how to fix this?
Thanks
Upvotes: 1
Views: 99
Reputation: 785406
Try using NC
(ignore case) flag:
RewriteRule ^mydirectory/(.*)$ http://www.google.com/ [R=301,L,NC]
Upvotes: 1