I just encountered a strange configuration problem with the htaccess maker in Admin Tools Pro. My client's website runs on a server that is behind a proxy. Everything works fine but one htaccess maker feature triggers a bug : HSTS headers.
Attached are two versions of the .htaccess file : one (ko) is generated by Admin Tools' htaccess maker. The other one was tweaked to work ok. The only difference is on line 35 :
RewriteCond %{HTTP:X-Forwarded-Proto} =http
has to be changed to
RewriteCond %{HTTP:X-Forwarded-Proto} !=https
If I don't do that, I get a 500 error. The sysop says something about the header being changed dureing redirection between proxy and Apache server. If you want me to ask questions to him I can, here I'm just repeating something I don't quite understand.
It's probably in part the proxy's fault, but maybe it could be addressed in Admin Tools too?
Best regards,