您的位置:首页 > 编程语言 > PHP开发

针对thinkphp中"no input file specified"的解决方法

2017-07-20 17:43 666 查看
部署thinkphp的项目时,经常有碰到这种问题“no input file specified”,此时只需要配置与index.php同级的.htaccess的文件即可。具体修改的内容如下:

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: