So, am helping a guy to redirect all HTTP requests to HTTPS but keep on getting loop error when adding any of these in .htaccess.
ReWriteCond %{SERVER_PORT} 80
Or
RewriteCond %{HTTP:X-Forwarded-Proto} !https
Or
RewriteCond %{HTTPS} off
Or
RewriteCond %{HTTPS} !on
Or
RewriteCond %{HTTP:X-Forwarded-SSL} =off
This is a shared hosting (if that even matters). This is the phpinfo file and am not too sure how I can use this via .htaccess like what this guy suggested
_SERVER["https_proxy"]