# Multilingual URL adresses : how to set up cleanly?

**URL:** https://discourse.gohugo.io/t/multilingual-url-adresses-how-to-set-up-cleanly/56133
**Category:** support
**Created:** [October 23, 2025, 12:01pm UTC](https://discourse.gohugo.io/t/multilingual-url-adresses-how-to-set-up-cleanly/56133 "2025-10-23T12:01:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Jajgso](https://avatars.discourse-cdn.com/v4/letter/j/e495f1/32.png) [@Jajgso](https://discourse.gohugo.io/u/Jajgso)
#### Post date: [October 23, 2025, 12:01pm UTC](https://discourse.gohugo.io/t/multilingual-url-adresses-how-to-set-up-cleanly/56133/1 "2025-10-23T12:01:59Z")

</div>

Hello there,

I’m new to Hugo and I’m building a blog with two languages coded as `eo` and `fr` . I have a page in `content/eo/primi.md`. But, for now, it is generated in `public/primi/index.html`. I would have expected to be in `public/eo/primi/index.html`.

- Is this generation normal ? (`hugo.toml` below)
- How to set up the url so I have to put `/eo/` or `/fr/` to get to the language ? (Yes, I am aware that it means that `domain.tld/` wont be enough to access my website)

Thanks !

`hugo.toml` :

```auto
baseURL = ‘https://domain.tld/blogo/’ # it's not the original domain
title = ‘My New Hugo Site’
theme = ‘nightfall’

defaultContentLanguage = ‘eo’
defaultContentLanguageInSubdir = false
disableDefaultLanguageRedirect = false
disableLanguages = 

[languages]
[languages.eo]
disabled = false
languageCode = ‘eo’
languageDirection = ‘’
contentDir = ‘content/eo’
languageName = ‘Esperanto’
title = ‘Mia blogo’
weight = 5
[languages.fr]
disabled = false
languageCode = ‘fr’
contentDir = ‘content/fr’
languageDirection = ‘’
languageName = ‘’
title = ‘Mon blog’
weight = 10

```

And the three content of `content/` :

```auto
~/website $ tree content/
content/
├── eo
│ └── primi.md
└── fr

3 directories, 1 file

```

Thank you in advance !

---

<div class="post-metadata">

### Author: ![tifenak](https://avatars.discourse-cdn.com/v4/letter/t/e36b37/32.png) [@tifenak](https://discourse.gohugo.io/u/tifenak)
#### Post date: [October 23, 2025, 1:26pm UTC](https://discourse.gohugo.io/t/multilingual-url-adresses-how-to-set-up-cleanly/56133/3 "2025-10-23T13:26:16Z")

</div>

> [@Jajgso](#):
>
> `defaultContentLanguageInSubdir = false`

This should be `true`.

---

<div class="post-metadata">

### Author: ![Jajgso](https://avatars.discourse-cdn.com/v4/letter/j/e495f1/32.png) [@Jajgso](https://discourse.gohugo.io/u/Jajgso)
#### Post date: [October 23, 2025, 6:38pm UTC](https://discourse.gohugo.io/t/multilingual-url-adresses-how-to-set-up-cleanly/56133/4 "2025-10-23T18:38:14Z")

</div>

I feel so stupid. I read and hadn’t realized that it was it. Thank you !!

---

<div class="post-metadata">

### Author: ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)
#### Post date: [October 25, 2025, 6:38pm UTC](https://discourse.gohugo.io/t/multilingual-url-adresses-how-to-set-up-cleanly/56133/5 "2025-10-25T18:38:15Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
