Add static files in a Litium website?

Is it possible to add static files (in this case a static sitemap.xml file) to a Litium controlled site?

I noticed the Configure URL handling but that will exclude a whole folder? I want this file to exist in the root of the Litium website.

Litium version: 6.2.1

Regards
Magnus

Litium have automatic creation of the sitemap file so you don’t need to add that, but if you need to add other files you can place a file in the root that is named sitemap.xml and that will be handled by the file system.

The Litium generated sitemap is added into the robots.txt file so search engines is finding the correct url automatic.

1 Like

Do that work even if I have a Litium site that lives in the root?

It is possible to turn of the function in Litium that adds the generated sitemap in the robots.txt file?

The reason for this is that I need a custom sitemap in a site that only redirects to other Litium sites, so basically I need to add a sitemap pointing out the sub-sites. And the generated sitemap in Litium seems to only handl content pages, categories and products/variants.

In Litium backoffice > Settings > Websites, edit your website and uncheck Enable sitemap for external search engines

1 Like

Thanks, Patric and Mårten! I wonder which answer to mark as correct, since they answers different parts of this. =)

/Magnus

1 Like

If you go to the sitemap that is generated; example yourdomain.com, you will see that it is responding with a sitemap index schema instead and you will have one or multiple sitemaps below this one.

If you enter any of the sitemaps in the list; example yourdomain.com, you can find out that it will include pages and categories (and maybe products) for all websites that have the same domain name. So if you have one /se website and one /en website, pages from both of the websites will be visible in the sitemap.

I’ll try to clearify my answer here.

The SEO team wants a hierarchy of sitemaps, which will end up with the sitemap in the root site will only contain it’s own content (in sitemap.axd?page=1) and links to all the sub-site’s own sitemaps (in sitemap.axd).

Currently, the sitemap (sitemap.axd?page=1) in the root contains the content of all sub-sites and this is not how the SEO team wants it. And the sitemap.axd still only contains one link to it’s own sitemap.axd?page=1?

Regards
Magnus