How to Get Current Page URL of Website
In this article, you will learn How to Get Current Page URL of Website. Example:- Output:- /how-to-get-current-page-url-of-website Example:- Output:- https://huboftutorials.com/how-to-get-current-page-url-of-website…<?php
$url=$_SERVER['REQUEST_URI'];
echo $url;
?>
Get Full URL
<?php
$actual_link = "https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
echo $actual_link ;
?>