Apache does not generate a 404
问题 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 contents of /faq.php get shown when I access the URI /faq.php/randomstuff.gif ? FYI, I have no htaccess file in the same directory. 回答1: 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