ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Automatically expiring pages in Google's index

August 16, 2007 2:51am

Subscribe [2]
  • #1 / Aug 16, 2007 2:51am

    Magnus Wester

    38 posts

    Google has added a meta tag that allows the expiration date for an entry to be automatically propagated to the search engine. Using this tag will cause a page to be hidden from the Google search results on its expiration date.

    Of course, most pages don’t have an expiration date, but when it is used it’s really useful to have the page automatically removed from Google’s index. Otherwise people may find the page through Google, but end up on your site’s “not-found” page - or something even worse, depending on the quality of your templates.

    To exploit this feature in your templates (and I see no reason why you shouldn’t), add the following line within the <head> section of the template, within the scope of the exp:weblog:entries tag:

    {if expiration_date}<meta name="googlebot" content="unavailable_after: {expiration_date format="{DATE_RFC850}"}">{/if}

    More information is available on the Official Google Blog.

  • #2 / Aug 16, 2007 4:05am

    Ingmar

    29245 posts

    That’s nifty. As you’ve said, not everybody needs it, but it’s a nice idea.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases