Apache does not generate a 404

后端 未结 2 1689
再見小時候
再見小時候 2021-01-26 09:19

if I have /faq.php on the server it can also be accessed via /faq.php/nonexistant.gif why? I have made sure MultiViews are disabled. Why does the conte

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-26 10:09

    That is called path_info. You can disable it using AcceptPathInfo Off in the apache config. People generally use it as a fake mod rewrite when mod rewrite is not availalble.

    http://httpd.apache.org/docs/2.2/mod/core.html#acceptpathinfo

提交回复
热议问题