Hi! In our akeeba admin tools htaccess Maker settings we have enabled HSTS. In the htaccess file this results in:
##### HTTP to HTTPS redirection
## Since you have enabled HSTS the first redirection rule will instruct the browser to visit the HTTPS version of your
## site. This prevents unsafe redirections through HTTP.
RewriteCond %{HTTPS} !=on [OR]
RewriteCond %{HTTP:X-Forwarded-Proto} =http
RewriteRule .* https://www.DOMAINNAME.nl%{REQUEST_URI} [L,R=301]
I think this means alle request are redirected to https. So when someone uses http in the browser this makes sure the visitor is send to the https version of the page, Correct?
Joomla 4 also has a setting on the 'server' tab that is called 'Force HTTPS'. When we set this to 'whole site' we experience some issues (TO MANY REDIRECTS) when 2-factor authentication is used for logging in to the backend. So i tried turning this option off ('none') in Joomla and it loks like that helps with the 'to many redirects'.
My questions:
- Can we leave the J4 option 'Force HTPPS' to 'none' an still have visitors redirected to htpps because of the htaccess settings?
- Could the option 'Force HTPPS' set to 'whole site' cause issues with redirect when the htaccess also redirect? So that might cause the issue with the 'to many redirects' when log in in to the bakcend?
The 'To many redirects' only showed up a while back. I have not seen this before. Not sure when exactly. I could have als been caused by changes to LastPass... The have done an overhaul of the plugin and maybe the 2-factor page and LastPass don't get along somehow...
But even so, I am still curious about the best settings for the https redirect,
Kind regards,
Jip