zoukankan      html  css  js  c++  java
  • thinkphp使用模块/控制器/操作访问时出现No input file specified.解决方式

      thinkphp使用 http://serverName/index.php/模块/控制器/操作 访问时,出现了 No input file specified. 的错误

    解决办法:

    一:

      开启cgi.fix_pathinfo

      配置php.ini,设置 cgi.fix_pathinfo=1,重启服务

    二:

      自己写伪静态

      例1:

      #RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]

        RewriteRule ^(.*)$ index.php?s=$1 [QSA,PT,L]

      使用 http://serverName/index.php?s=模块/控制器/操作 进行访问

      例2:

      #RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]

        RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]

      使用 http://serverName/模块/控制器/操作 进行访问

      

    本文来自博客园,作者:Bin_x,转载请注明原文链接:https://www.cnblogs.com/Bin-x/p/4517370.html

  • 相关阅读:
    Excel教程(5)
    Excel教程(4)
    Excel教程(3)
    Excel教程(2)
    如何在Excel中少犯二(I)
    for zip
    temp
    study
    eclipse
    shell
  • 原文地址:https://www.cnblogs.com/Bin-x/p/4517370.html
Copyright © 2011-2022 走看看