On my site, one of my pages when loaded never contains a GET value.
The beginning of the script is:
print_r($_GET);
print_r($_SERVER);
For $_SERVER I get:
REQUEST_URI => /dir/sub_dir/script_name/?s=30&v=20
QUERY_STRING =>
and for $_GET I just have: Array ( )
This doesn't seem to be a problem for any other page.
What could be causing this?
/dir/sub_dir/index.php?s=30&v=20?QSAflag in the RewriteRule.QSA="query string append". Meaning that any additional get string passed is also added to the url rewrite.script_namewhich is included in the query. It is not an index page, but the URL is re-written via.htaccessto remove.phpand add/. Sorry for not mentioning that. I use the same rewriting rules for other scripts without problems.