Hi, I'm trying to configure LangRouter with Babel locally on wamp. But I have issues. Modx is installed in modx folder, so the root link is http://localhost/modx.
The links for home pages in any of the languages are not working, but for error pages or the wrong specified paths are.
For configuring babel i was following this tutorial:
https://anyscreensize.com/blog/modx-multilingual/ , for langRouter I was going through the official documentation:
http://jako.github.io/LangRouter/usage/
Friendly URL and use_alias_path are enabled, gateway plugin is disabled, because I read somewhere that it is not recommended to have two plugins running at the same time.
Example:
localhost/modx/en/ not working
localhost/modx/en/blabla working
.htaccess
RewriteEngine On
RewriteBase /modx
# Rewrite www.domain.com -> domain.com -- used with SEO Strict URLs plugin
#RewriteCond %{HTTP_HOST} .
#RewriteCond %{HTTP_HOST} ^www.(.*)$ [NC]
#RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
#
# or for the opposite domain.com -> www.domain.com use the following
# DO NOT USE BOTH
#
#RewriteCond %{HTTP_HOST} !^$
#RewriteCond %{HTTP_HOST} !^www\. [NC]
#RewriteCond %{HTTP_HOST} (.+)$
#RewriteRule ^(.*)$ https://www.%1/$1 [R=301,L] .
# Rewrite secure requests properly to prevent SSL cert warnings, e.g. prevent
#
https://www.domain.com when your cert only allows
https://secure.domain.com
#RewriteCond %{SERVER_PORT} !^443
#RewriteRule (.*)
https://example-domain-please-change.com/$1 [R=301,L]
# Redirect the manager to a specific domain - don't rename the ht.access file
# in the manager folder to use this this rule
#RewriteCond %{HTTP_HOST} !^example-domain-please-change\.com$ [NC]
#RewriteCond %{REQUEST_URI} ^/manager [NC]
#RewriteRule ^(.*)$
https://example-domain-please-change.com/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(en|de)/favicon.ico$ favicon.ico [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(en|de)/assets(.*)$ assets$2 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(en|de)?/?(.*)$ index.php?cultureKey=$1&q=$2 [L,QSA]
[ed. note: unforgiven666 last edited this post 7 years, 1 month ago.]