# 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年十一月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:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![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)\
**Post date:** [2021年十一月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) 中的帖子不被索引。有什么想法吗？  
请帮助解决这个问题。

---

<div class="post-metadata">

**Author:** ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)\
**Post date:** [2021年十一月23日 15:13 UTC](https://meta.discourse.org/t/posts-in-wp-discourse-interferes-with-the-seo-of-the-wordpress-site/209982/2 "2021-11-23T15:13:27Z")

</div>

没有需要解决的问题。由于规范网址（canonical URLs），这不会影响您的 SEO。实际上，它在某种程度上还能改善您的 SEO（如果用户在评论或互动，并且 Google 也这么认为）。

---

<div class="post-metadata">

**Author:** ![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)\
**Post date:** [2021年十一月24日 08:16 UTC](https://meta.discourse.org/t/posts-in-wp-discourse-interferes-with-the-seo-of-the-wordpress-site/209982/3 "2021-11-24T08:16:00Z")

</div>

@Jagster 非常感谢您的回复。  
我甚至不知道什么是规范链接。很高兴 Discourse 可以做到这一点。

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2021年十二月24日 08:16 UTC](https://meta.discourse.org/t/posts-in-wp-discourse-interferes-with-the-seo-of-the-wordpress-site/209982/4 "2021-12-24T08:16:31Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
