I don’t know the expressions well enough to tell you what you’re code is doing (or not doing in this case) but I use this simple code to redirect to https, maybe this helps:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
I tried both solution, no luck there. It seems somehow modx if forcing http on the frontend, that is why every time I try to force https, I get a loop. ( Even after cleaning the cache manually ).
Do you know any other place you think I should look at? I’ve checked the setting, but I have found nothing related to the base url.
Some updates: Out of curiosity, I’ve installed wordpress just to check the default htaccess… and I am getting the same error loop… so it definitely comes from the server itself.
It may be a plugin, some settings that I have missed… the annoying part is that it is a fresh install of Centos8 and Plesk… frankly I have no idea where to look.