Apache mod_speling case insensitive URLs issue

前端 未结 5 723
攒了一身酷
攒了一身酷 2021-02-05 10:24

I want to have case insensitive URLs using Apache\'s mod_speling module, but this is producing unwanted lists of \"multiple options\" whilst the Apache documention

5条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-05 11:02

    After reading user1647075's answer about this being a known Apache bug that's unlikely to be fixed, I decided my best option was to hide the "multiple options" page from the user by updating my Apache config to show the 404 error page for 300 status codes:

    ErrorDocument 300 /404.htm
    

    Of course, you can also create a custom error page instead of reusing the 404 error page.

    Hope this workaround helps.

提交回复
热议问题