zoukankan      html  css  js  c++  java
  • tp5.1 错误 No input file specified.

    http://www.xxxx.com/admin/index/index

    出现错误:No input file specified.

    一、方法

    与php版本有关  PHP版本5.6以上都会出现这个问题  把php版本改为5.5就OK

    二、方法

    .htaccess文件中的

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

    在默认情况下会导致No input file specified.

    修改成

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

      

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

      

    问题解决。

    <IfModule mod_rewrite.c>
      Options +FollowSymlinks -Multiviews
      RewriteEngine On
    
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
    </IfModule>
    

      

  • 相关阅读:
    Linux
    CUDA开发
    Linux C++
    Python
    C++
    模式识别
    Linux
    算法
    算法
    leetcode 数组,链表,跳表
  • 原文地址:https://www.cnblogs.com/wntd/p/10048786.html
Copyright © 2011-2022 走看看