I have an index.php file which handles all requests to the server. I’ve set up a 404 error redirect in .htaccess in this way:
ErrorDocument 404 /index.php
If a users request a file, say, page.php, then it gets redirected to the index.php page properly.
The problem arises when the users request page.php?page=about, then my index.php is unable to retrieve the queryaboutusing$_REQUEST[‘page’]`.
How can i get the query about through the index.php using $_REQUEST['page'] ?
$_SERVER['REDIRECT_QUERY_STRING']may contain your query strings.Give this a shot.