Hi,
I´m a web developer that have got into MODx a couple of months ago. I found YAMS a week ago and are in the implementation phase right now.
I´ve unfortunately encountered a weird problem. I followed all instructions and enabled my templates i use unique aliases and the adresses looks like this:
http://www.domain.com/(lang, e.g en)/alias
My problem is that it works on the first and the second page but not on the rest!? On my 7th resource (regular HTML) it will show in Swedish (my default language) but not in English, instead it will redirect to the start page showing in English? Same thing with the ones that "doesn´t work", I will just be redirected to the chosen language?
I´m using the latest version of YAMS, 1.1.7 alpha RC7 for testing.
Is this a known problem? Or is there a good troubleshooting method? I can´t find any differences between the resources that work and the ones that don´t..
EDIT: I guess I can attach a copy of my .htaccess:
Options +FollowSymlinks
# Friendly URLs
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^domain\.se$
RewriteRule (.*) http://www.domain.se/$1 [R=301,L]
# Fix Apache internal dummy connections from breaking [(site_url)] cache
RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
RewriteRule .* - [F,L]
# Exclude /assets and /manager directories from rewrite rules
RewriteRule ^(manager|assets) - [L]
# Redirect from mydomain.com/rootname to mydomain.com/rootname/
RewriteRule ^en$ en/ [R=301,L]
RewriteRule ^sv$ sv/ [R=301,L]
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^en/(.*)$ index.php?q=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^sv/(.*)$ index.php?q=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]