I have my site in Spanish and I want to put it in German, I have installed Babel, but the second language I get error 404. Someone who can help me please
The extra Babel is only for the linking of resources between the different contexts (and for synchronizing fields and TVs between those resources).
To make a multilingual site (with a context for every language) work, you also need an additional routing extra or write a custom ‘gateway plugin’ that loads the correct context based on the request.
You could use LangRouter for that or also SmartRouting. Please make sure to use the appropriate context-settings for these routing extras (as they require different settings.)
Hi, do you know how to do this type of setup? I could pay you to help me finish it.
So what is your current state?
- Did you install a routing extra?
- What are your context settings?
- Did you make changes to
.htaccess
?
Is the site in spanish already online?
Do the URLs for the spanish site contain the language-key /es/
(e.g. https://domain.com/es/page.html
) or not?
Does it matter if all the URLs change (e.g. from https://domain.com/page.html
to https://domain.com/es/page.html
)?