English 中文(简体)
How can a robots.txt ignore anything with action=history in it?
原标题:

I have a MediaWiki, and I don t think I want Google indexing the history of any page. How can a robots.txt disallow URLs with action=history in the query string?

最佳回答

The HTML for the history view (and several others, such as the logs, etc.) contains a "noindex,nofollow" meta declaration. Compliant user agents, such as Googlebot, will honour this advice and not bother indexing the page.

问题回答

暂无回答




相关问题
disallow certain url in robots.txt [closed]

We implemented a rating system on a site a while back that involves a link to a script. However, with the vast majority of ratings on the site at 3/5 and the ratings very even across 1-5 we re ...

Multiple Sitemap: entries in robots.txt?

I have been searching around using Google but I can t find an answer to this question. A robots.txt file can contain the following line: Sitemap: http://www.mysite.com/sitemapindex.xml but is it ...

热门标签