Wednesday, January 26, 2011

Apache: Redirecting with a case-insensitive path?

i have the following redirect:

RedirectPermanent /SCJ https://fin-iq.com

but it does not work for /scj, /sCj, etc. is there a way to make this case insensitive?

i tried adding [NC,L] but the page crashed.

thanks!

  • This should work.

    RedirectMatch permanent (?i)^/SCJ https://fin-iq.com
    
    From Zoredache

0 comments:

Post a Comment