How to forward a website to another url using PHP
To do this, you need to create the page that will do the forwarding. This can be any page, as long as it ends in “.php”. If you are trying to redirect a domain, you’d create “index.php” inside the public_html directory.
<?php
header(”Location: http://blog.serverbuddies.com”);
?>
Where http://blog.serverbuddies.com is the location that you want the page to forward to.
Leave a Reply
You must be logged in to post a comment.