PDA

View Full Version : Page Redirection


vbcore
Thu 2nd Dec '04, 10:49pm
If I wanted to point say "www.mysite.com" to www.google.com i would do the following code right?

<?php
header("Location: http://www.google.com");
?>

Is that the simplest way to do it?

Floris
Fri 3rd Dec '04, 11:03am
<?php
header("Location: http://www.Google.com/");
?>
That is what I use, so yeah.

Icheb
Mon 6th Dec '04, 2:58am
If you want to point one domain to another one permanently, you could send a 301 error code along. That indicates that the site has moved permanently and browsers and search spiders should automatically update their index to not use the old URL any longer.