Problem With Solutions

Something Different In Linux

Home » Knowledge » Redirect by using php code

Redirect by using php code

Posted by Rishikesh Vispute Categories: Knowledge, PHP

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 .


Optimized by SEO Ultimate