Redirect with PHP


2012-07-12

To redirect to another page using php, do this:

<?php

header('Location: http://redirect-to-here.com');

?>

Of course, replace http://redirect-to-here.com with the site or page you wish to redirect traffic to. You can also redirect with JavaScript.