Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to forward the website to another URL
#1
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 -

Quote:<?php
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 -

Quote:Redirect 301 / [b] http://forwarding_page_name/to/go.html[/b]

You can opt to nay 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.
  


Forum Jump:


Users browsing this thread:
1 Guest(s)