I have added also what follows to avoid continuous requests to change admin passwords at login.
RewriteCond %{REQUEST_URI} !^/youradmin(/|$)
so, all in all the .htaccess, in order to have everything working correctly, got the following lines:
#Redirect all to https but anyotherfoldertoexclude and youradmin
RewriteCond %{REQUEST_URI} !^/anyotherfoldertoexclude(/|$)
RewriteCond %{REQUEST_URI} !^/youradmin(/|$)
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}/$1 [R=301,L]
Ciao from Italy
enzo
Bookmarks