I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 8104
41581 credits Members referred : 3
« on: Dec 02, 2005, 04:43:01 PM »
I have a strange problem.
Google is crawling so much pages of my site that it is like a DOS attack....
In the first two days of this month, I got more than 15.000 hits from google and the whole requests from crawlers were more than 30.000
So I thought it would be better if I could manipulate the headers, so that the crawlers will not re-index allready indexed pages.
Can you help me to do this?
I use the above code, but it is not working fine :
Code:
<?php header("HTTP/1.0 304 Not Modified"); header("Expires: " . gmdate("D, d M Y H:i:s", ( time() + 31550600 ) ) . " GMT");//For one year header("Last-Modified: ". gmdate("D, d M Y H:i:s", $mod ) ." GMT"); ?>
the $mod is the timestamp of the last modified date.
Global Moderator
Internet Junkie
Gender:
Posts: 1523
6847 credits Members referred : 8
Gimme all your cookies!!!
« Reply #1 on: Dec 05, 2005, 09:06:01 AM »
That will probably not help straight away as G will only pick it up after reindexing that page... have you removed it from the header now; cause I can't see it in there?