15
Sep
Learn how to Redirect using PHP
There is a simple PHP script to redirect a user from the page they entered to a different web page. The main reason to do this is that the page they are trying to access no longer exists or no permission to enter. Using this method, they can be seamlessly transferred to the new page without having to click a link to continue.
When using the ‘Back’ button, the user is taken to the last viewed page, not the redirect page and works on all browsers.
<?php
header( 'Location: http://www.learnhow2do.com' ) ;
?>