Hello everyone,
I am trying to add some code in my .htaccess to redirect any cached versions of my pages to the actual pages. My site has undergone some quite big changes recently and my error logs are getting clogged with requests for files that no longer exist as these are google or yahoo cache links.
I mananged to find some information here:
#Google Cache
RewriteCond %{HTTP_REFERER} search\?q=cache: [NC]
#MSN Cache
RewriteCond %{HTTP_REFERER} cache\.aspx\?q [NC]
#Yahoo Cache
RewriteCond %{HTTP_REFERER} cache\?ei [NC]
But couldn't quite get to a point where these requests where redirected to the non-cached version of the page they were asking for.
Can anyone here help?
Many Thanks!