Usage
At the moment, the extension provides two possible ways to inject located
XML sitemaps in a requested robots.
file. This section describes
how to properly use each of them and what steps are necessary to enable all
provided features.
Example
The following example describes what processes happen when a robots.
file is requested and XML sitemaps get injected.
-
Base URL
The base URL of your site is
https://
.www. example. com/ -
XML sitemaps
Currently, the following XML sitemaps are available for your site:
https://
www. example. com/ sitemap. xml https://
www. example. com/ sitemap- news. xml
-
robots.
txt Given the following content of your
robots.
route:txt User-agent: * Allow: / Disallow: /forbidden/
Copied! -
Sitemap injection
If you have injection of XML sitemaps enabled in your site configuration and each configured XML sitemap actually exists, the
robots.
will be enhanced like follows:txt User-agent: * Allow: / Disallow: /forbidden/ Sitemap: https://www.example.com/sitemap.xml Sitemap: https://www.example.com/sitemap-news.xml
Copied!Note
If any located XML sitemap does not exist or is inaccessible, it is not injected into the response body of your
robots.
. The validation of XML sitemaps happens intxt \Elias
.Haeussler\ Typo3Sitemap Locator\ Sitemap\ Sitemap Locator:: is Valid Sitemap
See also
Read more about how to configure your XML sitemaps in the documentation of EXT:sitemap_locator.