Forwarding the website to another URL -
1. Using index.php file -
1. Create the page as index.php file under public_html directory.
2. Add below code -
2. Add below code -
<?php
header("Location: http://forwarding_page_name/to/go.html");
?>
header("Location: http://forwarding_page_name/to/go.html");
?>
2. Using htaccess file -
1. Create .htaccess file under public_html directory.
2. Add below code -
2. Add below code -
Redirect 301 / [b] http://forwarding_page_name/to/go.html[/b]
You can opt to any of the below method.
Note -
You will need to replace the name of website in the 'http://forwarding_page_name/to/go.html' where you would like to forward your site.