Get the full URL in PHP
This question’s answers are a community effort. Edit existing answers to improve this post. It is not currently accepting new answers or interactions. I use this code to get the full URL: $actual_link = ‘http://’.$_SERVER[‘HTTP_HOST’].$_SERVER[‘PHP_SELF’]; The problem is that I use some masks in my .htaccess, so what we see in the URL is not … Read more