Skip to main content

thinkphp 出现404时的可能性

当站点部署好以后,方案站点,能够自动跳转到pathinfo模式路由,但页面提示404,这是应考虑服务器的WEB服务不知道pathinfo,如:

访问:http://example.com/index.php

自动跳转到:http://example.com/index.php/user/login

页面现实404,这就是因为WEB服务不支持pathinfo导致,如nginx1.2就不支持