Changing Url without reloading page in php

Changing Url without reloading page in php

Changing Url without reloading page in php

Is it possible to change the  URL without performing a redirect in php?

Answer:

<?php 

function set_url( $url )
{
    echo("<script>history.replaceState({},'','$url');</script>");
 
}
   set_url("https://example.com");
  
?>

Anyother suggestions??

What's Your Reaction?

like
0
dislike
0
love
0
funny
0
angry
0
sad
0
wow
0