Forum Moderators: open
<html>
<head>
<?
if ($SERVER_NAME == "old.example.com")
{
header("HTTP/1.1 301 Moved Permanently");
header("Location: [new.example.com");...]
exit;
}
?>
But still google indexs the old page with the new pages data. My title was edited in the wrong direction - I get both sites indexed. The old site just shows the new sites data.
[edited by: ciml at 3:27 pm (utc) on Jan. 26, 2004]
BTW, you know how google sometimes indents a secondary result within the same site, such as
-- www.widgets.com/products/abc-123.html
----- www.widgets.com/products/abc-123/
Well, that's what google did when I did the 301s:
-- www.OLD-URL.com/etc-etc/
----- www.NEW-URL.com/etc-etc-etc/
After a week of this it removed the OLD-URL and simply showed:
-- www.NEW-URL.com/etc-etc-etc/