# 如何在 Discourse 子目录下设置 WordPress

**URL:** https://meta.discourse.org/t/how-to-set-up-wordpress-as-a-subdirectory-of-discourse/88457
**Category:** WordPress
**Created:** [2018 年5 月 25 日 14:08 UTC](https://meta.discourse.org/t/how-to-set-up-wordpress-as-a-subdirectory-of-discourse/88457 "2018-05-25T14:08:46Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### 作者： ![Garrick](https://avatars.discourse-cdn.com/v4/letter/g/b9bd4f/32.png) [@Garrick](https://meta.discourse.org/u/Garrick)
#### 发布日期： [2018 年5 月 25 日 14:08 UTC](https://meta.discourse.org/t/how-to-set-up-wordpress-as-a-subdirectory-of-discourse/88457/1 "2018-05-25T14:08:46Z")

</div>

So i have a problem in which I had installed the main discourse at the top level. Years later I dont want to lose any google ranking on seo.

I was told creating the site at `https://news.xxxxxx.com` would cause google to not crawl properly and would have to give a different sitemap.

Main thing is I dont want to hurt my DA score or google searching. In other sites I would find it easy to add the folder and install the wordpress there but not sure how this works with discource since Im not familiar too much with docker.

What would be the best solution in this?

---

<div class="post-metadata">

### 作者： ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### 发布日期： [2018 年5 月 25 日 14:16 UTC](https://meta.discourse.org/t/how-to-set-up-wordpress-as-a-subdirectory-of-discourse/88457/2 "2018-05-25T14:16:26Z")

</div>

> [@Garrick](#):
>
> I was told creating the site at `https://news.xxxxxx.com` would cause google to not crawl properly and would have to give a different sitemap.

Only half of this is true!

If you want google to crawl your site properly, submit the sitemap for `news.example.com` through google search console.
