# Sitemap.xml bug

**URL:** <https://forums.realmacsoftware.com/t/sitemap-xml-bug/22906>\
**Category:** RapidWeaver Classic\
**Created:** [October 19, 2018, 4:12pm UTC](https://forums.realmacsoftware.com/t/sitemap-xml-bug/22906 "2018-10-19T16:12:35Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![axxxxe](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@axxxxe](https://forums.realmacsoftware.com/u/axxxxe)\
**Post date:** [October 19, 2018, 4:12pm UTC](https://forums.realmacsoftware.com/t/sitemap-xml-bug/22906/1 "2018-10-19T16:12:35Z")

</div>

It appears that RW 7 is creating my sitemap.xml incorrectly.

In the RW page inspector for a page on my site I have Folder = /customers/private

This produces this page: [https://www.ihealmacs.com/customers/private/](https://www.ihealmacs.com/customers/private/)

But in [https://www.ihealmacs.com/sitemap.xml](https://www.ihealmacs.com/sitemap.xml) I find:

https://www.ihealmacs.com/customers/customers/private/index.html

Can I be doing something wrong here? Or is this a bug?

---

<div class="post-metadata">

**Author:** ![manofdogz](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/manofdogz/32/26314_2.png) [@manofdogz](https://forums.realmacsoftware.com/u/manofdogz)\
**Post date:** [October 19, 2018, 4:31pm UTC](https://forums.realmacsoftware.com/t/sitemap-xml-bug/22906/2 "2018-10-19T16:31:08Z")

</div>

can you show a screengrab for the page inspector

---

<div class="post-metadata">

**Author:** ![bendeparis](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/bendeparis/32/6522_2.png) [@bendeparis](https://forums.realmacsoftware.com/u/bendeparis)\
**Post date:** [October 19, 2018, 4:35pm UTC](https://forums.realmacsoftware.com/t/sitemap-xml-bug/22906/3 "2018-10-19T16:35:20Z")

</div>

I have exactly the same bug. For a long time. (On RW8 too)

---

<div class="post-metadata">

**Author:** ![axxxxe](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@axxxxe](https://forums.realmacsoftware.com/u/axxxxe)\
**Post date:** [October 20, 2018, 8:04am UTC](https://forums.realmacsoftware.com/t/sitemap-xml-bug/22906/4 "2018-10-20T08:04:15Z")

</div>

![12](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/2X/3/3c53bb2b746dfaca33701b5aba7217900513abbb.png)

---

<div class="post-metadata">

**Author:** ![manofdogz](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/manofdogz/32/26314_2.png) [@manofdogz](https://forums.realmacsoftware.com/u/manofdogz)\
**Post date:** [October 22, 2018, 9:43am UTC](https://forums.realmacsoftware.com/t/sitemap-xml-bug/22906/5 "2018-10-22T09:43:07Z")

</div>

If the page name is ‘customers’ the sitemap you have is correct. It shows URL / Page Name / Folder Name.

That’s why you have ‘customers’ twice.

---

<div class="post-metadata">

**Author:** ![axxxxe](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@axxxxe](https://forums.realmacsoftware.com/u/axxxxe)\
**Post date:** [October 23, 2018, 8:01am UTC](https://forums.realmacsoftware.com/t/sitemap-xml-bug/22906/6 "2018-10-23T08:01:59Z")

</div>

The page name is “Private Customers”.

![14](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/2X/7/7595f8966032fd63c2df295e72e354f8f149ef4d.png)

---

<div class="post-metadata">

**Author:** ![axxxxe](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@axxxxe](https://forums.realmacsoftware.com/u/axxxxe)\
**Post date:** [October 23, 2018, 8:09am UTC](https://forums.realmacsoftware.com/t/sitemap-xml-bug/22906/7 "2018-10-23T08:09:16Z")

</div>

Incidentally, the Services page is placed within a folder called /mac-support-zurich, which is reflected in the sitemap as [iHealMacs Services | Mac Technical Support in Zurich](https://www.ihealmacs.com/mac-support-zurich/index.html). This URL is correct. The page name does not appear in the sitemap URLs.

![37](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/2X/e/e15e4722a7faef8358976ed94cda73598159f844.png)

---

<div class="post-metadata">

**Author:** ![DLH](https://avatars.discourse-cdn.com/v4/letter/d/b5e925/32.png) [@DLH](https://forums.realmacsoftware.com/u/DLH)\
**Post date:** [October 23, 2018, 11:54am UTC](https://forums.realmacsoftware.com/t/sitemap-xml-bug/22906/8 "2018-10-23T11:54:22Z")

</div>

You want the folder for the Private Customers page to be “/private” and not “/customers/private”.

Since it’s a sub-page of Customers, it will go in the folder “/customers” specified for the Customers’ page. By specifying “/customers/private” you are telling RW to put that page in another “customers” sub-folder before putting it in a “private” folder.

---

<div class="post-metadata">

**Author:** ![axxxxe](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@axxxxe](https://forums.realmacsoftware.com/u/axxxxe)\
**Post date:** [October 24, 2018, 7:20am UTC](https://forums.realmacsoftware.com/t/sitemap-xml-bug/22906/9 "2018-10-24T07:20:18Z")

</div>

This is not what is happening. With the folder set to “/customers/private” the page is being placed where I want, and where I expect, which is domain/customers/private/. But the sitemap says domain/customers/customers/private/index.html.

As an experiment I changed the folder field in the page inspector to “/private”. Now the page is being placed in domain/private/ and the sitemap says domain/customers/private/index.html, which is still wrong.

If the sitemap is not matching the actual site structure surely that is a bug, regardless of how the folder field in the page inspector is filled out…?

(Just to be clear, I don’t actually care in what folder the page is stored. I am right now getting errors from Google Search Console for my two pages which RW has incorrectly listed in my sitemap.xml. This is what I’m trying to fix.)

---

<div class="post-metadata">

**Author:** ![DLH](https://avatars.discourse-cdn.com/v4/letter/d/b5e925/32.png) [@DLH](https://forums.realmacsoftware.com/u/DLH)\
**Post date:** [October 24, 2018, 11:09am UTC](https://forums.realmacsoftware.com/t/sitemap-xml-bug/22906/10 "2018-10-24T11:09:41Z")

</div>

> [@axxxxe](#):
>
> “/private”

Sorry, I was trying this from memory. Just checked one of my projects. Try just “private” (omit the leading “/”).

I agree, though, the sitemap should match where the page is published. The above seems to work fine for me. It should get you the structure you want and get the sitemap to match.

---

<div class="post-metadata">

**Author:** ![axxxxe](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@axxxxe](https://forums.realmacsoftware.com/u/axxxxe)\
**Post date:** [October 25, 2018, 11:29am UTC](https://forums.realmacsoftware.com/t/sitemap-xml-bug/22906/11 "2018-10-25T11:29:09Z")

</div>

Removing the leading / appears to produce the correct sitemap.xml. Waiting now for Google to validate the change.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/system/32/25301_2.png) [@system](https://forums.realmacsoftware.com/u/system)\
**Post date:** [November 24, 2018, 9:29pm UTC](https://forums.realmacsoftware.com/t/sitemap-xml-bug/22906/12 "2018-11-24T21:29:10Z")

</div>

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