Mod_rewrite - How to tell Google to dynamically delete pages from their index after 7 days

Posted by Sattvic on Stack Overflow See other posts from Stack Overflow or by Sattvic
Published on 2010-04-29T19:59:03Z Indexed on 2010/04/29 20:07 UTC
Read the original article Hit count: 235

Filed under:
|
|

Search engines like to crawl and index webpages or URLs, but what if your webpages/URLs have expired content and you do not want them to be indexed after so many days?

Can you put an expiration in the URL and have mod_rewrite 301 redirect pages after a given expiration date?

Or maybe a cron job to add a 301 redirect header to all expired pages?

© Stack Overflow or respective owner

Related posts about mod-rewrite

Related posts about apache