Search Our Database

How to create page redirection?

Last updated on |
by

Here is the short guide to show how to use a simple PHP script to redirect user from one page which they have entered to a different web page.

The primary reason you may want to do create page redirection is that the page which visitors trying to access no longer exists. By create a page redirection, you can seamlessly redirect visitors to the new page.

Step 1: Create an index.php file with content listed below:


Step 2: Transfer the index.php file to your host. If the index.html file exists on your host, you will need to either delete the index.html or rename the index.html to different name so that the index.php will be accessed on incoming visits.