# Primary vs Secondary Language

**URL:** <https://forum.getkirby.com/t/primary-vs-secondary-language/23749>\
**Category:** Questions\
**Tags:** v3\
**Created:** [October 22, 2021, 2:20pm UTC](https://forum.getkirby.com/t/primary-vs-secondary-language/23749 "2021-10-22T14:20:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fux](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/fux/32/14515_2.png) [@fux](https://forum.getkirby.com/u/fux)\
**Post date:** [October 22, 2021, 2:20pm UTC](https://forum.getkirby.com/t/primary-vs-secondary-language/23749/1 "2021-10-22T14:20:41Z")

</div>

In my Kirby installation I have defined the following languages:

Standard/Primary Language: English (en)  
Secondary Language: Deutsch (de)

The language settings (site \> languages \> en.php and de.php) look like this:

en.php:  
‘default’ =\> true  
‘url’ =\> ‘/en’

de.php:  
‘default’ =\> false  
‘url’ =\> ‘/de’

The english version of the website should be displayed at `www.domain.com/en/`, the German version on the other hand at `www.domain.com/de/`.

Despite these settings `www.domain.com` is automatically redirected to  
`www.domain.com/de` (secondary language) and not, as intended, to `www.domain.com/en` (primary language). DE is also listed before EN in the language menu.

Why? Any tips? Thanks 😊

---

<div class="post-metadata">

**Author:** ![thguenther](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/thguenther/32/16708_2.png) [@thguenther](https://forum.getkirby.com/u/thguenther)\
**Post date:** [October 22, 2021, 2:25pm UTC](https://forum.getkirby.com/t/primary-vs-secondary-language/23749/2 "2021-10-22T14:25:32Z")

</div>

Do you use [Automatic language detection](https://getkirby.com/docs/guide/languages/introduction#automatic-language-detection)? If you do, the main url will redirect to your preferred language.

---

<div class="post-metadata">

**Author:** ![fux](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/fux/32/14515_2.png) [@fux](https://forum.getkirby.com/u/fux)\
**Post date:** [October 27, 2021, 2:49pm UTC](https://forum.getkirby.com/t/primary-vs-secondary-language/23749/3 "2021-10-27T14:49:07Z")

</div>

Thanks for the quick response. The suggested setting …

```auto
'languages.detect' => true

```

… was already available, but Kirby still redirects to the German version.

---

<div class="post-metadata">

**Author:** ![thguenther](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/thguenther/32/16708_2.png) [@thguenther](https://forum.getkirby.com/u/thguenther)\
**Post date:** [October 27, 2021, 3:20pm UTC](https://forum.getkirby.com/t/primary-vs-secondary-language/23749/4 "2021-10-27T15:20:01Z")

</div>

That’s what I meant. If you set it to `false` you will no longer be redirected.

---

<div class="post-metadata">

**Author:** ![fux](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/fux/32/14515_2.png) [@fux](https://forum.getkirby.com/u/fux)\
**Post date:** [October 27, 2021, 4:50pm UTC](https://forum.getkirby.com/t/primary-vs-secondary-language/23749/5 "2021-10-27T16:50:28Z")

</div>

That’s exactly it 😊 Thanks for your help.
