在我的本地机器上,一切正常,但在肝脏服务器上,我无法读取查询字符串
echo $_SERVER['REQUEST_URI']; == /purchase?id=2
echo $_SERVER['QUERY_STRING']; == EMPTY
这怎么可能发生?
这是htaccess文件内容:
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>