How to change baseUrl of my site in a mutli language setup?

Hi,

I have a website with two languages (de, en). The site renders and it runs fine. I want that the language shortcut is shown in the url → mydomain.com/de/ and also mydomain.com/en/
The default language is de and it shows the german content with mydomain.de. The english content shows with mydomain/en/.

How can I change the url generating to repect the language tag?
Or will my static website then not work anymore, because there is no for example php-server redirecting to the index.html inside mydomain.com/de/?

Other approve would be to make a landing page on mydoamin.com to select a language. What do you think? Any suggestions?

Thanks!

You can include the default language code in URL by setting the defaultContentLanguageInSubdir as true on configuration, read more on Multilingual mode | Hugo.

1 Like

works now… i dont know why it didn’t first. Restarted my linux also.
thanks

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