|
|
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!
More Useful HTML, JavaScript and Web Site Programming Articles:
✔ How to Create Predefined Google Image Search Links?
Thanks for the Amazon URL [see Creating Amazon Search Links]. That worked beautifully. In fact, I sent you $5.00 for coffee in thanks....
✔ Can I embed a Facebook search box on my blog site?I've seen your articles about how to add a Twitter or Google search box on a Web page, but I have a tougher...
✔ Can I use CSS for drop shadows on my blog?I want to give my site a bit of a facelift and add some neat graphical elements. One of which is drop shadows....
✔ How can I embed interactive photo panoramas on my site/blog?I read through your blog entry about how to take panoramic photos with iOS 6 and an iPhone 5 and got enthused. I've...
✔ How can I create a Twitter search URL shortcut?I'd like to add a few Twitter search links to my Web site. Is that possible, or does Twitter prohibit this sort of...
Let's stay in touch!
Sign up for my weekly AskDaveTaylor Newsletter and you'll receive even more tech and gadget help
right to your inbox, along with exclusive news and industry updates. It's good stuff. I promise!
Categorized:
HTML, JavaScript and Web Site Programming
(Article 7509,
Written by Dave Taylor)
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? Reader Comments To Date:
Rather amazingly, there are no comments on this article yet.
I do have a comment, now that you mention it!Check This Out Too... |
Recent Entries
Look for Answers
Recommended
All Our Categories
Apple iPad Help
Articles and Reviews Auctions and Online Shopping Blogs and Blogging Building Web Site Traffic Business and Management Computer and Internet Basics d) None of the Above Facebook Help Google Gmail Help Google Plus Help HTML, JavaScript and Web Site Programming Industry News and Trade Shows iPhone and Cell Phone Help iPod, Sony PSP and MP3 Player Help Kindle Fire Help Mac OS X Help Pay Per Click (PPC) Advertising Pinterest Help Search Engine Optimization (SEO) Shell Script Programming Tech Support Video Help The Writing Business Twitter, LinkedIn and Social Network Help Unix and Linux Help Video Game Tips and Help Windows PC Help Find Me on Google+ ADT on G+ |