I have the following code in my .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?url=$1 [PT,L]
</IfModule>
But now, $_GET statements do not work. If I have an url http://localhost/home/index?var=3, $_GET contains only the value “home/index”. I’m not familiar with this so I don’t know how to change it.
How do I enable $_GET statements in my urls?
Change:
RewriteRule ^(.*)$ index.php?url=$1 [PT,L]toit will now append the query string.
QSAmeansQuery String Append.