Sitemap.xml bug


(Axel) #1

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?


(LJ) #2

can you show a screengrab for the page inspector


(Ben) #3

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


(Axel) #4

12


(LJ) #5

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.


(Axel) #6

The page name is “Private Customers”.

14


(Axel) #7

Incidentally, the Services page is placed within a folder called /mac-support-zurich, which is reflected in the sitemap as https://www.ihealmacs.com/mac-support-zurich/index.html. This URL is correct. The page name does not appear in the sitemap URLs.

37


(Don H) #8

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.


(Axel) #9

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


(Don H) #10

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.


(Axel) #11

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