I am running a server locally. It's Apache2 with PHP. Following are the files that I have written.
.htaccess
ErrorDocument 404 /notFoundError.php
/notFoundError.php
<?php echo phpinfo(); ?>
When I type some non-existing url http://localhost/this/is/dummy?key=value
, it successfully redirects to notFoundError.php
and prints the phpinfo table. There I do not find key=value
in the _SERVER["QUERY_STRING"]
row.