I have my htaccess redirecting to a error404.php but I want that PHP file to be able to extract the original url parameters.
For example:
http://mywebsite.com/unknownfile.php?param1=value1¶m2=value2
I've tried $_GET['param1']
but that's empty. The $_SERVER['PHP_SELF']
just shows error404.php
Many thanks in advance.