Industry guru Dave Taylor answers free tech support questions about a wide variety of business and technical topics, including blogging, Google AdSense, MySpace, Sony PSP, Apple iPod, Mp3 players, management, Linux, SEO, Mac OS X, Facebook, Twitter, LinkedIn and Microsoft Windows.

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?


Dave's Answer:

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 Simpy.

Subscribe!

Never miss another useful Q&A article again! Subscribe to AskDaveTaylor with Google Reader.

Comments
Rather amazingly, there are no comments on this article yet.

I have a lot to say, but ...
Starbucks coffee cup I have a lot to say, and questions of my own for that matter, but most of all I'd like to say thank you for all your efforts on this Web site by buying you a chai!

I do have a comment, now that you mention it!









Remember personal info?


Please note that I will never send you any unsolicited commercial email. Ever.

While I'm at it, please note that by submitting a question or comment you're agreeing to my terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site.









Uniblue: Free Virus Scan

Search
Find just the answers you seek from among our 1700+ free tech support articles by using our Lijit search engine.


Help!





Subscribe to
Ask Dave Taylor!

Add to Google Reader
Add to My Yahoo!
Subscribe in NewsGator Online

RDF   XML

Free Updates!
Sign up and get free weekly updates and special offers on books, seminars, workshops and more.


Recent Entries
Join the List!
Join my author info mailing list, where you'll learn about my upcoming books, speaking gigs, and more!


Book Links
© 2002 - 2008 by Dave Taylor. All Rights Reserved.

Note: This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this web site or on any linked site.

[whiteboard marker tray]