[opencms-dev] OpenCms 10.5/11: Change behaviour of SEO configuration file

Schliemann, Kai K.Schliemann at comundus.com
Wed Feb 10 16:55:55 CET 2021


Hi list members,

anybody ever changed the output of the sitemap.xml file (file type seo configuration file)?

We would like the links to be generated without default-file (index.html).

So instead of

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://localhost:8080/index.html</loc<http://localhost:8080/index.html%3c/loc>>
<lastmod>2021-02-10T10:34:45+01:00</lastmod>
</url>
<url>
<loc>http://localhost:8080/overview/index.html</loc<http://localhost:8080/overview/index.html%3c/loc>>
</url>
<url>
<loc>http://localhost:8080/login/index.html</loc<http://localhost:8080/login/index.html%3c/loc>>
</url>
<url>
<loc>http://localhost:8080/mercury-demo/index.html</loc<http://localhost:8080/mercury-demo/index.html%3c/loc>>
<lastmod>2021-02-10T10:34:39+01:00</lastmod>
</url>
...
</urlset>

We would like to have:

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://localhost:8080/</loc<http://localhost:8080/%3c/loc>>
<lastmod>2021-02-10T10:34:45+01:00</lastmod>
</url>
<url>
<loc>http://localhost:8080/overview/</loc<http://localhost:8080/overview/%3c/loc>>
</url>
<url>
<loc>http://localhost:8080/login/</loc<http://localhost:8080/login/%3c/loc>>
</url>
<url>
<loc>http://localhost:8080/mercury-demo/</loc<http://localhost:8080/mercury-demo/%3c/loc>>
<lastmod>2021-02-10T10:34:39+01:00</lastmod>
</url>
...
</urlset>

Where is this behaviour changed?

Thanks in advance for your help.

Best regards
Kai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.opencms.org/pipermail/opencms-dev/attachments/20210210/8f91df06/attachment.htm>


More information about the opencms-dev mailing list