Apache: Redirecting with a case-insensitive path

apache-2.2case-insensitiveredirect

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!

Best Answer

This should work.

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