thinkphp URL重写遇到No input file specified解决方法
作者:佚名 时间:2015-12-26
建网站由于处于安全考虑php关闭了cgi.fix_pathinfo,thinkphp URL重写遇到No input file specified解决方法,修改伪静态文件
.htaccess的内容为:
.htaccess的内容为:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?s=$1 [QSA,PT,L]
然后到convention.php文件中设置 'URL_MODEL'=> 2
然后到convention.php文件中设置 'URL_MODEL'=> 2
如没特殊注明,文章均为上海联楷网络原创,转载请注明来自:http://www.linksj.com/contact/20151229/n7272.html