Skip to main content
Almtuna
Inspiring
December 16, 2021
Answered

sitemap.xml, missing base URL (when generating ResponsiveHTML5)

  • December 16, 2021
  • 1 reply
  • 297 views

I use FM19 to generate ResponsiveHTML5.

In the Publish Settings, I have checked the "Generate XML Sitemap" box, and the file sitemap.xlm is now generated.

However, I have also specified a "Base URL of the Help System" - but the generated sitemap.xlm does not include the URL that I specified. For example, an entry looks like:

 

<url><loc>/Manuals/SQL_standards/SQL_standards.htm</loc><lastmod>2021-12-16</lastmod><changefreq>monthly</changefreq></url>

 

I did expect the web site URL to be included here.

How can I include that part of the URL?

This topic has been closed for replies.
Correct answer Almtuna

Problem solved.

Yesterday I specified the Base URL with a trailing "/" (slash character), like "https://test.somewhere.com/", and no base URL was included in the sitemap.xlm file.

Now I tested without that trailing slash, "https://test.somewhere.com", and now it works. The sitemap.xlm file now has the base URL:

 

<url><loc>https://test.somewhere.com/Manuals/SQL_standards/SQL_standards.htm</loc><lastmod>2021-12-17</lastmod><changefreq>monthly</changefreq></url>

 

 

1 reply

Almtuna
AlmtunaAuthorCorrect answer
Inspiring
December 17, 2021

Problem solved.

Yesterday I specified the Base URL with a trailing "/" (slash character), like "https://test.somewhere.com/", and no base URL was included in the sitemap.xlm file.

Now I tested without that trailing slash, "https://test.somewhere.com", and now it works. The sitemap.xlm file now has the base URL:

 

<url><loc>https://test.somewhere.com/Manuals/SQL_standards/SQL_standards.htm</loc><lastmod>2021-12-17</lastmod><changefreq>monthly</changefreq></url>