I added
<input type="hidden" id="rememberMe" name="rememberme" value="rememberme" checked="checked" />
[[!Login? &loginResourceId=`6` &rememberMeKey=`rememberme` &contexts=`web,en` &logoutResourceId=`1605` &language=`english` ]]
Nothing change, still can't login on en context
Page only reload.
So I do some tests.
One again I did everything according to the instructions
http://rtfm.modx.com/display/revolution20/Creating+a+Subdomain+from+a+Folder+using+Virtual+Hosts
because it is a problem with logging when context are on folder:
ex.
mydomain.com --> Login plugin always working
mydomain.com/en/ --> Login don't work only reload page
mydomain.com/it/ --> Login don't work only reload page
But when we use subdomains and domains everything work perfect
mydomain.com --> Login plugin always working
en.mydomain.com --> Login plugin always working
it.mydomain.com --> Login plugin always working
The problem was to redirect traffic from the directory
/home_server_path/public_html/en/assets
to
/home_server_path/public_html/assets
So I had to modify .htacces in /home_server_path/public_html/en/ folder
RewriteEngine On
RewriteBase /
RewriteRule ^assets/?(.*) http://www.mydomain.com/assets/$1 [R=301,L]
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.en.mydomain\.com [NC]
RewriteRule (.*) http://www.en.mydomain.com/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php?q=$1 [L,QSA]
[ed. note: avenus last edited this post 13 years, 3 months ago.]