# WP Discourse中的帖子会干扰WordPress网站的SEO

**URL:** <https://meta.discourse.org/t/posts-in-wp-discourse-interferes-with-the-seo-of-the-wordpress-site/209982>\
**Category:** WordPress\
**Created:** [2021 年11 月 23 日 14:12 UTC](https://meta.discourse.org/t/posts-in-wp-discourse-interferes-with-the-seo-of-the-wordpress-site/209982 "2021-11-23T14:12:02Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![Mikhail\_Tyuftyaev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikhail_tyuftyaev/32/237998_2.png) [@Mikhail\_Tyuftyaev](https://meta.discourse.org/u/Mikhail_Tyuftyaev)\
发布日期： [2021 年11 月 23 日 14:12 UTC](https://meta.discourse.org/t/posts-in-wp-discourse-interferes-with-the-seo-of-the-wordpress-site/209982/1 "2021-11-23T14:12:02Z")

</div>

大家好。  
我遇到了一个问题。  
当我的 WordPress 博客帖子导入到 Discourse 时，它们对搜索引擎可见。

我的帖子被导入到“News”类别中

我曾考虑将“News”类别添加到 robots.txt 文件中，但类别 URL 中没有拼出“News”这个词。  
例如：  
“News”类别 URL：`https://example.com/c/news/5`  
“News”类别中的帖子 URL：`https://example.com/t/conditional-formatting/244`  
我想将类别添加到 robots.txt，但 URL 应该看起来像这样：`https://example.com/news/conditional-formatting/244`  
请告诉我如何做到这一点？

也许还有其他方法可以隐藏 [WP Discourse](https://github.com/discourse/wp-discourse) 中的帖子不被索引。有什么想法吗？  
请帮助解决这个问题。

---

_[View the full topic](https://meta.discourse.org/t/posts-in-wp-discourse-interferes-with-the-seo-of-the-wordpress-site/209982)._
