Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
变量$_SERVER['REQUEST_URI']包含favicon.ico主页中的文件路径。为什么?
$_SERVER['REQUEST_URI']
favicon.ico
实现对 SEO 友好的 URL,人们总是知道它的行为类似于 404 处理程序,因此将在任何不存在的URL 上调用 php 路由器,包括 favicon.ico(如果它不存在)。 因此,必须预见到这种可能性,并在没有识别到任何应用程序 url 时发出定期 404 响应。