# Add static files in a Litium website?

**URL:** <https://forum.litium.com/t/add-static-files-in-a-litium-website/238>\
**Category:** Questions\
**Created:** [September 12, 2018, 8:28am UTC](https://forum.litium.com/t/add-static-files-in-a-litium-website/238 "2018-09-12T08:28:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![MagnusK](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@MagnusK](https://forum.litium.com/u/MagnusK)\
**Post date:** [September 12, 2018, 8:28am UTC](https://forum.litium.com/t/add-static-files-in-a-litium-website/238/1 "2018-09-12T08:28:50Z")

</div>

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](https://docs.litium.com/documentation/get-started/configure/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

---

<div class="post-metadata">

**Author:** ![patric.forsgard](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/patric.forsgard/32/10_2.png) [@patric.forsgard](https://forum.litium.com/u/patric.forsgard)\
**Post date:** [September 12, 2018, 11:33am UTC](https://forum.litium.com/t/add-static-files-in-a-litium-website/238/2 "2018-09-12T11:33:14Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![MagnusK](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@MagnusK](https://forum.litium.com/u/MagnusK)\
**Post date:** [September 12, 2018, 11:48am UTC](https://forum.litium.com/t/add-static-files-in-a-litium-website/238/3 "2018-09-12T11:48:05Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![marten](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/marten/32/11_2.png) [@marten](https://forum.litium.com/u/marten)\
**Post date:** [September 12, 2018, 12:15pm UTC](https://forum.litium.com/t/add-static-files-in-a-litium-website/238/4 "2018-09-12T12:15:19Z")

</div>

> [@MagnusK](#):
>
> It is possible to turn of the function in Litium that adds the generated sitemap in the robots.txt file?

In Litium backoffice \> Settings \> Websites, edit your website and uncheck _Enable sitemap for external search engines_

---

<div class="post-metadata">

**Author:** ![MagnusK](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@MagnusK](https://forum.litium.com/u/MagnusK)\
**Post date:** [September 12, 2018, 12:27pm UTC](https://forum.litium.com/t/add-static-files-in-a-litium-website/238/5 "2018-09-12T12:27:42Z")

</div>

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

/Magnus

---

<div class="post-metadata">

**Author:** ![patric.forsgard](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/patric.forsgard/32/10_2.png) [@patric.forsgard](https://forum.litium.com/u/patric.forsgard)\
**Post date:** [September 12, 2018, 2:17pm UTC](https://forum.litium.com/t/add-static-files-in-a-litium-website/238/6 "2018-09-12T14:17:35Z")

</div>

> [@MagnusK](#):
>
> 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.

If you go to the sitemap that is generated; example [yourdomain.com](https://www.yourdomain.com/sitemap.axd), 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](https://www.yourdomain.com/sitemap.axd?page=1), 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.

---

<div class="post-metadata">

**Author:** ![MagnusK](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@MagnusK](https://forum.litium.com/u/MagnusK)\
**Post date:** [September 13, 2018, 6:16am UTC](https://forum.litium.com/t/add-static-files-in-a-litium-website/238/7 "2018-09-13T06:16:37Z")

</div>

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
