I've been trying to get an error page (404) to work, well, it does work, but I can't get it to report what file the user tried to access.
In the script I'm calling the REQUEST_URI
$requri = getenv ("REQUEST_URI"); I've also tried $requri = ($_SERVER['REQUEST_URI']);
Both of them seems to report "404.php", which is the error page itself, and not the faulty address they wrote..
I've got no idea why it thinks the error page is the requested page... Unless the .htaccess command; ErrorDocument 404 https://mydomain.se/404.php Is faulty, but I don't think it is.