28, May 2012

header control - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: header control
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: header control  (Read 1145 times)
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« on: Dec 02, 2005, 03: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.

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1525
6359 credits
Members referred : 8


Gimme all your cookies!!!


« Reply #1 on: Dec 05, 2005, 08: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?


Last blog : Canonical URL Links / Tags
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #2 on: Dec 05, 2005, 11:21:17 am »

I am not sure if I understand what you said (I know my english sucks Smiley )

The problem here is that the pages in my site are dynamic.  So every time someone visits a page it gets a header that this page has created now.

Google is visiting my site very often and crawls pages that have allready crawled (that actually haven't expired yet)

With the headers I want to tell Google when to recrawl the page.

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=904
Tags : google Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: header control
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 11:02:25 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.