意见箱
恒创运营部门将仔细参阅您的意见和建议,必要时将通过预留邮箱与您保持联络。感谢您的支持!
意见/建议
提交建议

ThinkPHP报错集锦(1):使用路由报错 No input file specified.

来源:恒创科技 编辑:恒创科技编辑部
2024-01-09 09:41:59


修改 public 目录下 .htaccess 文件

原有


ThinkPHP报错集锦(1):使用路由报错 No input file specified.

<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>

上一篇: ThinkPHP开发技巧集锦(4):ORM 下一篇: ThinkPHP开发技巧集锦(一):使用validate构建参数验证层