Reputation: 14974
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?
Upvotes: 1
Views: 118
Reputation: 14974
I had my .htaccess
files locally deleted and I forgot that in one of the sub directories, I did have a .htaccess
with some deny/allow rules and that for was breaking the GET but everything else was loading. Deleting the .htaccess
(or fixing it to allow properly) made the GET
values start working again.
Upvotes: 1