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 query
aboutusing
$_REQUEST['page']`.
How can i get the query about
through the index.php using $_REQUEST['page']
?