ThinkPHP报错集锦(1):使用路由报错 No input file specified.
原创
©著作权归作者所有:来自51CTO博客作者八点博客的原创作品,请联系作者获取转载授权,否则将追究法律责任
修改 public 目录下 .htaccess 文件
原有
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] //多加一个问号
</IfModule>
修改后
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L] //多加一个问号
</IfModule>