我有一个htaccess文件。
RewriteEngine On
RewriteBase /WebInt/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]我的共享主机的服务器应用程序接口是CGI_FASTCGI,我得到了“未指定输入文件”。空白页上出现错误。我更改了htaccess文件:
RewriteEngine On
RewriteBase /WebInt/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]现在它可以工作了,但是这次我不能使用任何GET变量。我能做什么?
发布于 2015-11-27 04:20:27
RewriteRule ^(.*)$ index.php?/$1 L
那个?从重写的URL中删除原始查询字符串,该URL是PHP中"GET变量“的来源。您需要回到绘图板上,了解为什么添加它可以解决提供给FCGI守护进程的缺少脚本的问题。
https://stackoverflow.com/questions/33942980
复制相似问题