PHP URL Redirection

Sometimes you need to make a webpage send visitors to another page automatically.

If your website allows PHP this is easy.

Simply replace http://www.yourdomain.com/new_page.html below with the address of the page to which you would like your visitors redirected.

Then, replace the contents of the page you wish to redirect from with this script.

Please note, it MUST be the very first thing on the page, or it will not work.


<?php
header( 'Location:
http://www.yourdomain.com/new_page.html' ) ;
?>



Return to EWorldPro Online Tools

Additional information