
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.