I’ve got to build a multi-language Revolution site for 5 European countries and, after some deliberation, I’ve decided to go with one Web context and sub-folders rather than one Context per language.
I’ve performed the following so far
- Set ‘use_alias_path’ to true
- Created a couple of containers ‘en’ and ‘de’ with some pages underneath
- Set Web context ‘site_start’ to point to the ‘en’ container
All seems to work well except
- When I browse ‘mydomain.com’ without specifying a country code I’d like it to rewrite as ‘mydomain.com/en/’ instead of sticking on ‘mydomain.com’ - it show the content from container ‘en’ ok
- When I browse ‘mydomain.com/en’ or ‘mydomain.com/en/’ it currently rewrites as ‘mydomain.com’ which is not what I want. It’s showing the content ok from the container ‘en’ but rewriting the url. If I browse ‘mydomain.com/en/a-sub-page.html’ it sticks on that url ok.
I’ve tried a few options in .htaccess without success. Also I don’t want to break anything in terms of folders such as /assets.
Any pointers appreciated.
Mark