解決tp5 No input file specified.問題

記錄一下:

問題:No input file specified.

原因:.htaccess文件中的 RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] 在默認情況下會導致No input file specified.

解決辦法:修改成 RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1] ,重啓服務器即可。

注:如果存在user.ini文件,可能還需將其刪除。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章