• apache No input filespecified


    访问已配置好的重写规则的项目的项目是,提示No input file specified.这个原因在于使用的PHP5.6是fast_cgi模式,而在某些情况下,不能正确识别path_info所造成的错误。默认的.htaccess里面的规则
    Options +FollowSymLinks -Multiviews
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(((?!index.php).)*)$ index.php/$1 [L,QSA]
    解决方法:
    RewriteRule ^(((?!index.php).)*)$ index.php?/$1 [L,QSA]
    index.php后加上?可解决问题。
  • 相关阅读:
    每日日报
    每日日报
    每日日报
    每日日报
    每日日报
    每日日报
    每日日报
    类的封装和隐藏
    函数的装饰器
    vue嗯嗯
  • 原文地址:https://www.cnblogs.com/xiangdongsheng/p/14069676.html
Copyright © 2020-2023  润新知