# How to have root static folder with multilingual setup?

**URL:** <https://discourse.gohugo.io/t/how-to-have-root-static-folder-with-multilingual-setup/16902>\
**Category:** support\
**Created:** [February 8, 2019, 5:08pm UTC](https://discourse.gohugo.io/t/how-to-have-root-static-folder-with-multilingual-setup/16902 "2019-02-08T17:08:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jura](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jura/32/13581_2.png) [@Jura](https://discourse.gohugo.io/u/Jura)\
**Post date:** [February 8, 2019, 5:08pm UTC](https://discourse.gohugo.io/t/how-to-have-root-static-folder-with-multilingual-setup/16902/1 "2019-02-08T17:08:48Z")

</div>

I’m working on my first multi-lingual website with Hugo. These are my language settings:

```auto
defaultContentLanguage = "nl"
defaultContentLanguageInSubDir = true

[languages]
    [languages.nl]
        languageName = "Nederlands"
        contentDir = "content/nl"
            
    [languages.en]
        languageName = "English"
        contentDir = "content/en"

```

Here’s the problem: I have no root static directory. That means files I put into

```auto
/static/robots.txt

```

end up in

```auto
/nl/robots.txt
/en/robots.txt

```

Is there a way to still use a multi-lingual setup with Hugo where each language has its own subfolder, but still be able to place files at the website root folder?

Because currently I cannot upload the proper `robots.txt` file since it gets the wrong location.

(Plus it feels unnecessary to have duplicates of CSS, JavaScript, and all images.)

* * *

```auto
hugo env
Hugo Static Site Generator v0.51/extended windows/amd64 BuildDate: unknown
GOOS="windows"
GOARCH="amd64"
GOVERSION="go1.11"

```

---

<div class="post-metadata">

**Author:** ![martignoni](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/martignoni/32/5756_2.png) [@martignoni](https://discourse.gohugo.io/u/martignoni)\
**Post date:** [February 8, 2019, 10:05pm UTC](https://discourse.gohugo.io/t/how-to-have-root-static-folder-with-multilingual-setup/16902/2 "2019-02-08T22:05:05Z")

</div>

I think you experience this issue:

> <https://github.com/gohugoio/hugo/issues/5160>

  
and maybe this one too:  

> <https://github.com/gohugoio/hugo/issues/5161>

---

<div class="post-metadata">

**Author:** ![Jura](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jura/32/13581_2.png) [@Jura](https://discourse.gohugo.io/u/Jura)\
**Post date:** [February 9, 2019, 3:23pm UTC](https://discourse.gohugo.io/t/how-to-have-root-static-folder-with-multilingual-setup/16902/3 "2019-02-09T15:23:14Z")

</div>

That’s indeed the issue that I have. Thanks for the quick reply & have a nice weekend. 🙂
