Saturday, 19 November 2011

PHP redirection in index.php

Paste following lines in index.php with appropriate changes. ;)

header("Location: http://domain to be redirected"); //302 redirect
exit;
?>

Example:
``````````````
header("Location: http://google.com"); //302 redirect
exit;
?>

No comments: