[geeklog-devtalk] topic.php and url conformity
Richard S. Westmoreland
richardsw at suscom.net
Mon Dec 27 11:02:06 EST 2004
Sorry I have been saying "302 Permanent Redirect" when in fact it should be "301 Permanent Redirect". 302 is for temporary redirects.
I have come up with the solution and am testing it now:
if (!empty ($QUERY_STRING)) {
header('HTTP/1.1 301 Moved Permanently');
header('Location: http://www.antisource.com/topic.php/' . $topic);
exit();
}
This is in my index.php and topic.php. The same thing is in article.php, but with the correct link and variable.
Now all of the dynamic links still in Google's index will be crawled and then redirected to the correct page, and googlebot will update the index accordingly.
Rick
----- Original Message -----
From: Richard S. Westmoreland
To: geeklog-devtalk at lists.geeklog.net
Sent: Wednesday, December 22, 2004 8:57 AM
Subject: [geeklog-devtalk] topic.php and url conformity
As a side note, I wanted to point out that even with static links turned on, a lot of the geeklog code is still writing dynamic links in various places. This is causing duplicate pages for googlebot to crawl, and you end up with inconsistent index results, a dilluted page rank, and sometimes a penalty (which is happening to me). I have cleaned up these links but there is now an additional problem. Since Google already indexed them, it will continue to recrawl them - and even with static links turned on the dynamic links work as is. What I propose is that (when static links are enabled) Geeklog will determine what the referral link is, and if it's dynamic, use a 302 Permanent Redirect to the static version page. This will tell Google to update it's index with the static page.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://eight.pairlist.net/pipermail/geeklog-devtalk/attachments/20041227/b44fe633/attachment.htm>
More information about the geeklog-devtalk
mailing list