訪問tp3.2的項目時出現No input file specified.的解決辦法
阿新 • • 發佈:2017-11-17
ecif follow 3.2 req .htaccess options 打開 input spec
解決辦法很簡單如下:
打開.htaccess 在RewriteRule 後面的index.php教程後面添加一個“?”
原來的代碼如下
<IfModule mod_rewrite.c> Options +FollowSymlinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] </IfModule>
修改之後的代碼如下
<IfModule mod_rewrite.c> Options+FollowSymlinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L] </IfModule>
完美地解決了問題
訪問tp3.2的項目時出現No input file specified.的解決辦法