
How do I indicate my Web pages are going to expire?I have been building a set of Web pages for events hosted by my local temple, and the Rabbi is complaining that when he uses Google to search for upcoming events, it's the older events that have already passed that are showing up, not the upcoming events. What a headache! Is there some way to put an expiration date on a Web page like you can on a carton of milk? There is indeed, and I know exactly what you're talking about as I often search for festivals and street fairs just to find information from 2005 and 2006, but nothing about 2007 events. Part of it is because many event sites just aren't organized very well (for example, if you have an annual event, I would suggest that a filename like "craft-fest-2007.html" is less desirable than the simpler -- and more easily replaced each year -- "craft-fest.html") Better, though, is that there is an HTML "meta" tag that lets you specify an exact expiration date for your Web information, a tag that is respected by Google and most of the other big search engines. It's the "expires" meta tag and according to the spec, here's how you use it: <META http-equiv="Expires" content="Tue, 20 Aug 1996 14:25:27 GMT">
This is clunky and arguably it's more about when the search engine should get a fresher copy of the page contents than about when the page "expires", per se, but I think you could utilize it, especially if you remember to remove the event pages or change them once the event has transpired. There's another possibility too, if you just care about Google and figure that no-one who wants to come to your event would use Yahoo or MSN Search: "Unavailable_after". Just recently, Google's bloggers wrote about it, actually, as you can read in their confusingly named blog entry: robot exclusion protocol. The gist of their message is that you can use the following: <META NAME="GOOGLEBOT" CONTENT="unavailable_after: 25-Aug-2007 15:00:00 EST">
According to Google, this will actually delete the page from the Google index on the specified date and time, so even if the page continues to exist on the Web site, it won't be findable from a Google search. Frankly, the former solution is mediocre and the latter solution is goofy because it's Google-specific, but those are really the only two suggestions I have, other than to be strict about having a Web site that has no information about past events or recycles pages so that your Halloween party information page always has future information on the top and previous event information below it. Hmmm... that might be the smartest solution, actually. Imagine you have a page on your site for "halloween-party.html" and the first paragraph is always about the next event, whether it's two weeks or fifty weeks in the future, while the rest of the page offers up highlights of the previous party or parties, including pictures, commentary, and amusing anecdotes. The only place that might break down is with concerts or lectures listed by band name or speaker. You might never have the Hip Hop Cantor perform again at your temple, but I think this basic approach would still work: the information page would be future focused before the, uh, concert, then discuss the event after the fact once the concert was completed. Hope those give you some ideas and spark your creative juices (or some such mixed metaphor like that). Good luck to you!
Help others find this article at Del.icio.us, Digg, Netscape, Reddit, and Stumble Upon
Categorized:
HTML and CSS
(Article 7509)
Tagged: expires, html, meta tags Previous: Should I have contact information on my blog? Next: What is OEM software and can I buy it legally? Subscribe!
Never miss another useful Q&A article again! Subscribe to AskDaveTaylor with Google Reader.
Rather amazingly, there are no comments on this article yet.
I have something to say, now that you mention it, but ...
I do have a comment, now that you mention it!
|
![]()
Search
Find just the answers you seek from among our 2300+ free tech support articles by using our Lijit search engine.
Help!
Subscribe to
Ask Dave Taylor!
Free Updates!
Sign up and get free weekly updates and special offers on books, seminars, workshops and more.
Articles and Reviews
Auctions and Online Shopping Blogs and RSS Feeds Building Web site traffic Business and Management Cell Phones and Mobile Phones CGI Scripts and Web Site Programming Computer and Internet Basics d) None of the Above HTML and CSS Industry News and Trade Shows Mac OS X Help MySpace, Facebook, Twitter and Social Network Help Pay Per Click (PPC) Search Engine Optimization Shell Script Programming Sony PSP, MP3 Players, Etc. The Writing Business Unix and Linux Help Video Game Tips and Help Windows Help
Recent Entries
Book Links
|