Hello,
I was recently preparing site for the multi language use and so I used different contexts for that and Babel to do the translations efficiently. So far I have two contexts web(culturekey: en) and pl(culturekey:pl). I set up the redirect plugin as well as did the .htaccess url rewrite. What it does, it redirects properly if the url is www.domain.com/en/ to the main page but if I append the /pl/ at its end it show the 503 error of unauthorized access. Does anyone have an ides why?
I checked that the resource exists because if I change the link to non existing resource then it throws the error of resource not being found.
-
☆ A M B ☆
- 24,524 Posts
Did you add permissions for accessing the context to the "anonymous" user group?
Yes, these permissions are set and appear to be ok. I tried everything including clearing cache (manually and from the backend) and at the end flushing sessions solved the problem.
There is another issue with the multi language sites in MODX which are based on virtual directories and that is the 404 page which can be set in the settings. These settings work only for the main context but not for the rest of them. The easy solution for that is to set up a redirect plugin which will fire 'OnPageNotFound'.
-
☆ A M B ☆
- 24,524 Posts
I use this plugin, which needs no rewrite rules at all
https://gist.github.com/gadamiak/3812853