Skip to content

How to redirect first page to another page?

Here is a simple example how to use header() function to redirect page from one page to another.
<?php
//Redirect page from one page to another page.
header(“Location:http://www.google.com”);
?>