Forum Moderators: open

Message Too Old, No Replies

301 redirection: 2 pages to 1

Is it a problem for Google?

         

yves1

9:45 pm on Sep 24, 2003 (gmt 0)

10+ Year Member



Hi,
I am preparing the move of a website to a new domain. In each (php) page of the current domain, I plan to make a 301 redirect to the corresponding page of the new domain.

It happens that 2 different pages of the site (let's say page1.php and page2.php) will be merged into a unique page (merged.php), while moving to the new domain.

What if I put this 301 redirect script in both page1.php and page2.php
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: [newdomain.com...]
exit();
?>

Is there a risk that google will be confused by the fact that 2 distinct pages permanently redirect to a unique page?

Thank you.