Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 MediaWiki,我认为我不希望 Google 将任何页面的历史编入索引。如何在查询字符串中robots.txt禁止 URL ?action=history
robots.txt
action=history
历史视图(以及其他几个,如日志等)的 HTML 包含一个“noindex,nofollow”元声明。合规的用户代理(例如 Googlebot)将尊重此建议,而不会费心为页面编制索引。