Sitemap.xml bug

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/

But in 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?

1 Like

can you show a screengrab for the page inspector

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

12

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.

The page name is ā€œPrivate Customersā€.

14

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. This URL is correct. The page name does not appear in the sitemap URLs.

37

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.

1 Like

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.)

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.

1 Like

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

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