I'm trying to get the URL in the address bar using PHP, but $_SERVER['REQUEST_URI']
returns that path to the actual file, not the URL I'm created using .htaccess. For example, if my file is at
example.com/files/example.php
But I've changes the url to:
example.com/example
I want to get the prettier URL, using PHP, not the actual path. $_SERVER['REQUEST_URI']
is returning the actual path.