Redirect by using php code

How to redirect index.php page to another url by using php code.
If you want to redirect your index.php page to another URL or page then add the following code in your index.php page.

<?php
header( ‘Location: http://www.domain.com/new_page.html’ ) ;
?>

Note : Replace “http://www.domain.com/new_page.html” with exact URL on which you want to redirect you index page .

Leave a Comment