1. 程式人生 > >tp5.1路由報錯No input file specified.

tp5.1路由報錯No input file specified.

修改 access ref min 安裝 教程 xxx targe rule

按照官方教安裝了框架,打開首頁沒問題,可是安裝教程路由規則打開 "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]

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

路徑 :\public\.htaccess.php中配置

技術分享圖片

官方文件:https://www.kancloud.cn/manual/thinkphp5_1/353955

tp5.1路由報錯No input file specified.