开发者

Apache: Permanent redirect that is case-insensitive?

开发者 https://www.devze.com 2023-01-10 01:06 出处:网络
i have the following redirect: RedirectPe开发者_高级运维rmanent /SCJ https://fin-iq.com but it does not work for /scj, /sCj, etc. is there a way to make this case insensitive?

i have the following redirect:

RedirectPe开发者_高级运维rmanent /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!


The modifiers [NC,L] are for RewriteRule only. They don't apply to RedirectPermanent.

And the apache docu tells, that the first parameter to RewriteRule is case-sensitive

The old URL-path is a case-sensitive (%-decoded) path beginning with a slash 1

So I guess, the only option you got is:

RedirectPermanent /SCJ https://fin-iq.com
RedirectPermanent /SCj https://fin-iq.com
RedirectPermanent /ScJ https://fin-iq.com
RedirectPermanent /Scj https://fin-iq.com
RedirectPermanent /sCJ https://fin-iq.com
RedirectPermanent /sCj https://fin-iq.com
RedirectPermanent /scJ https://fin-iq.com
RedirectPermanent /scj https://fin-iq.com
0

精彩评论

暂无评论...
验证码 换一张
取 消