SSL Redirect breaks on https://
-
Hey, my SSL test page returned the following info:
#SSL TEST PAGE#
This page is used purely to test for SSL availability.#SERVER-HTTPS-ON# (on)
#SERVERPORT443#
#LOADBALANCER##SUCCESSFULLY DETECTED SSL#
So according to documentation I added to my .htaccess the following code and it works:
<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTPS} !=on [NC] RewriteRule ^(.*)$ https://%{HTTP_HOST}%/$1 [R=301,L] </IfModule> <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{SERVER_PORT} !443 RewriteRule ^(.*)$ https://%{HTTP_HOST}%/$1 [R=301,L] </IfModule> <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule ^(.*)$ https://%{HTTP_HOST}%/$1 [R=301,L] </IfModule>
With these settings the website loads faster than ever on https. However, when I try to enter it via http it simply does not redirect: https://lookforloot.com/
I’m having the setting for Stop editing the .htaccess file enabled because when I tried first to enable the setting of Enable 301 .htaccess redirect it returned the following error: “The .htaccess redirect rules that were selected by this plugin failed in the test.” and this also slowed the page greatly.
When this code is active in .htaccess the plugin also returns this error: “The mixed content fixer could not be detected due to a cURL error: cURL error 6: Could not resolve host: lookforloot.com%25”
Also my hosting provider in Webas has a setting of “Force SSL (https://)” but whether I enable or disable it, the outcome stays the same.
I would appreciate help on that!
- This topic was modified 4 years, 10 months ago by .
- This topic was modified 4 years, 10 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘SSL Redirect breaks on https://’ is closed to new replies.