# Weird language behavior: First default language re-direct not working, now error

**URL:** <https://forum.getkirby.com/t/weird-language-behavior-first-default-language-re-direct-not-working-now-error/35523>\
**Category:** Questions\
**Tags:** v5\
**Created:** [July 27, 2026, 3:33pm UTC](https://forum.getkirby.com/t/weird-language-behavior-first-default-language-re-direct-not-working-now-error/35523 "2026-07-27T15:33:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jimbo\_Jones](https://avatars.discourse-cdn.com/v4/letter/j/d2c977/32.png) [@Jimbo\_Jones](https://forum.getkirby.com/u/Jimbo_Jones)\
**Post date:** [July 27, 2026, 3:33pm UTC](https://forum.getkirby.com/t/weird-language-behavior-first-default-language-re-direct-not-working-now-error/35523/1 "2026-07-27T15:33:27Z")

</div>

So I am building a fairly standard portfolio website that has two languages, en (default) and de.  
On my localhost everything works fine the domain gets “re-directed” (not sure if thats the right wording here) to the [domain.com/en](http://domain.com/en) and works as expected. On the server it just stayed on [domain.com](http://domain.com) without automatically adding the /en. When I added it manually it did work, but this never happened before. Now suddenly it gives me an error:

```auto
Kirby\Cms\Page::urlForLanguage(): Argument #2 ($options) must be of type ?array, Kirby\Content\Field given, called in pathToWebsite/kirby/src/Cms/Page.php on line 1266

```

but debugger gives me the type error in line 1298

```auto
public function urlForLanguage(

```

Any ideas where to start fixing this? I don’t think I changed anything out of the ordinary. Hosting is on Strato, PHP is 8.3.31, Kirby is 5.5.2, website sits in a folder inside the root. I downloaded the whole site except for the content folder (since its large) and locally it does work…

---

<div class="post-metadata">

**Author:** ![Jimbo\_Jones](https://avatars.discourse-cdn.com/v4/letter/j/d2c977/32.png) [@Jimbo\_Jones](https://forum.getkirby.com/u/Jimbo_Jones)\
**Post date:** [July 27, 2026, 3:46pm UTC](https://forum.getkirby.com/t/weird-language-behavior-first-default-language-re-direct-not-working-now-error/35523/2 "2026-07-27T15:46:42Z")

</div>

Okay error seemed to be a mistake on my but it still does not redirect the domain to the /en default language…

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [July 27, 2026, 4:08pm UTC](https://forum.getkirby.com/t/weird-language-behavior-first-default-language-re-direct-not-working-now-error/35523/3 "2026-07-27T16:08:02Z")

</div>

Is the .htaccess file present on the server? is mod–redirect and.htaccess overwrites enabled?

---

<div class="post-metadata">

**Author:** ![Jimbo\_Jones](https://avatars.discourse-cdn.com/v4/letter/j/d2c977/32.png) [@Jimbo\_Jones](https://forum.getkirby.com/u/Jimbo_Jones)\
**Post date:** [July 27, 2026, 4:12pm UTC](https://forum.getkirby.com/t/weird-language-behavior-first-default-language-re-direct-not-working-now-error/35523/4 "2026-07-27T16:12:16Z")

</div>

.htaccess file is present and in default condition that it comes with in the plainkit, I tried RewriteBase / because with IONOS servers it often necessary but on this Strato server it did nothing.

EDIT: I put the page on my own Strato server and I do have the same problem, it is not turning the domain into the domain + the /en

EDITEDIT: I can’t believe how stupid I am, took me 10 hours to realize there was an empty index.html in the root folder, no idea how it got there but that was the problem all along. Sorry.
