Page is a not externally linkable
rankboy - 8:03 pm on Nov 14, 2008 (gmt 0)
Here is the code I would use on the PHP pages:
That shouldn't be a problem. While you can do this at the Apache level I think I would prefer the PHP level because what if the pages aren't named the exact same thing?
<?php
header("HTTP/1.1 301 Moved Permanently");
$query_append = '';
if ($_SERVER['QUERY_STRING'])
{
$query_append = '?'.$_SERVER['QUERY_STRING'];
}
header("Location: /newpage.asp{$query_append}");
?>