PHP Get URL from PHP_SELF or REQUEST_URI

I normally use $PHP_SELF to get the current browser’s URL path. However; when I applied new rewrite rules to my .htaccess file, $PHP_SELF did not match the current browser url path.

In order to get what the requested URL path, I had to use $REQUEST_URI.

You may also like...

Leave a Reply