Posts tagged How to set redirection from PHP

PHP Redirection Code

How to redirect index.php page to another URL   by using php code .

Just add the following code in the Index.php  file.

===============================================

<?php
header( ‘Location: http://www.domain.com/pagetoredirect.html’ ) ;
?>
===============================================
Note : Replace “http://www.domain.com/pagetoredirect.html” with exact URL on which you want to redirect your  index page .

That’s all this will do it.