How to create a sitemap.xml in TYPO3 Version 9.5

in typo3 •  last year  (edited)

The new TYPO3 9.5 can now perform various SEO tasks directly from the core. Of course, there is also an XML sitemap that can be automatically generated from the page tree, or even more complexly rendered with a custom data provider.

How to create a simple sitemap.xml URL

First, you have to install the extension "seo", which has been newly integrated into the core since TYPO3 9.5.
Bildschirmfoto 2018-11-09 um 12.05.58.jpg

Then the static TypoScript template has to be integrated into the main template of the website. Best in the root page, unless you have a special case.

Bildschirmfoto 2018-11-09 um 12.01.10.jpg

The sitemap or the sitemap index can be reached immediately under the following URL:

Bildschirmfoto 2018-11-09 um 12.03.00.jpg
Browser HTML output

Bildschirmfoto 2018-11-09 um 12.03.29.jpg
Raw sitemap XML source

The whole thing is explained here in the official TYPO3 documentation:

However, no further details are given on how to create a URL with the format "". Some users asked this question on the internet and I solved it in the following simple way:

In the new module "Site" you can create so-called static routes in the settings of the respective page. Here you can simply create a new static route called "sitemap.xml" or any other name. Simply paste the URL of the sitemap into the "Page, File or URL" field of the URL of the previously generated sitemap.

Bildschirmfoto 2018-11-09 um 11.55.24.jpg

That's it!

You should now be able to call up a simple sitemap or a sitemap index via the URL format "/sitemap.xml" in the browser!

Note: In another article, I will describe how to make all Sitemap URLs more readable, not just the index. For this part I need some time to get to know TYPO3 9.5 even better.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!