0
我有下面的代碼在我的.htaccess我在使用mod_rewrite之後如何檢索GET數據?
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?url=$1 [PT,L]
</IfModule>
但現在,$ _ GET語句不工作。如果我有一個網址http://localhost/home/index?var=3
,$ _ GET只包含值「家庭/索引」。我不熟悉這個,所以我不知道如何改變它。
如何在我的網站中啓用$ _GET語句?