# Missing sitemap-posts.xml

**URL:** <https://forum.ghost.org/t/missing-sitemap-posts-xml/40675>\
**Category:** Self-hosting\
**Created:** [August 23, 2023, 8:40am UTC](https://forum.ghost.org/t/missing-sitemap-posts-xml/40675 "2023-08-23T08:40:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpwdr](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jpwdr/32/23493_2.png) [@jpwdr](https://forum.ghost.org/u/jpwdr)\
**Post date:** [August 23, 2023, 8:40am UTC](https://forum.ghost.org/t/missing-sitemap-posts-xml/40675/1 "2023-08-23T08:40:45Z")

</div>

Hi everyone.

Just creating this post to share my issue and how i fixed it. We had an issue on our self-hosted ghost instance that left the sitemap-posts.xml file missing in the [myblog.com/sitemap.xml](http://myblog.com/sitemap.xml) file. We were running the latest versions of ghost (so at this post date it was 5.59.2). After checking our config.production.json file and routes.yaml files we could not find why the sitemap was missing and our google skills were getting us no results, so we decided to pray and hope it could be fixed by rolling back version. We found out that the sitemap-posts.xml file was present again in version 5.20.0 so we will stick with this one.

Hope this will help some people having the same issue as we did.

---

<div class="post-metadata">

**Author:** ![Hannah](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hannah/32/22_2.png) [@Hannah](https://forum.ghost.org/u/Hannah)\
**Post date:** [August 23, 2023, 10:09am UTC](https://forum.ghost.org/t/missing-sitemap-posts-xml/40675/2 "2023-08-23T10:09:56Z")

</div>

Do the missing posts have a canonical URL?

---

<div class="post-metadata">

**Author:** ![jpwdr](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jpwdr/32/23493_2.png) [@jpwdr](https://forum.ghost.org/u/jpwdr)\
**Post date:** [August 23, 2023, 4:59pm UTC](https://forum.ghost.org/t/missing-sitemap-posts-xml/40675/3 "2023-08-23T16:59:13Z")

</div>

I looked around and it indeed does have canonical URL `"<link rel="canonical" href="https://mywebsite.com/blog/post" /> "`.

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [August 23, 2023, 5:01pm UTC](https://forum.ghost.org/t/missing-sitemap-posts-xml/40675/4 "2023-08-23T17:01:34Z")

</div>

There’s your problem. Canonical urls tell ghost to omit your page from the sitemap, because the Google crawler is going to ignore it!

---

<div class="post-metadata">

**Author:** ![jpwdr](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jpwdr/32/23493_2.png) [@jpwdr](https://forum.ghost.org/u/jpwdr)\
**Post date:** [August 23, 2023, 5:03pm UTC](https://forum.ghost.org/t/missing-sitemap-posts-xml/40675/5 "2023-08-23T17:03:40Z")

</div>

Thanks for the info! it seems a bit backward since we did not change anything to enable them while installing and configuring our ghost instance. I’ll look around and check how we can disable them

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [August 23, 2023, 5:08pm UTC](https://forum.ghost.org/t/missing-sitemap-posts-xml/40675/6 "2023-08-23T17:08:44Z")

</div>

Ghost doesn’t set them in the post editor by default. Is there an import or something in your past?
