直接可以访问然而加上路径就访问不到了

解决方案 »

  1.   

    没有启用 PATH_INFO
      

  2.   

    http://document.thinkphp.cn/manual_3_2.html#support_pathinfo
      

  3.   

    nginx错误日志
    2018/09/29 13:59:13 [error] 8756#8696: *1 rewrite or internal redirection cycle while processing "/index.php//index.php//index.php//index.php//index.php//index.php//index.php//index.php//index.php//index.php//index.php//tp3/index.php/Home/index/data1", client: 127.0.0.1, server: localhost, request: "GET /tp3/index.php/Home/index/data1 HTTP/1.1", host: "localhost"
      

  4.   

    在项目根目录下添加.htaccess文件试试。