Https / SSL issues

alt=
duke
@musamensa
7 years ago
248 posts
i have noticed some erratic behaviours when using https to connect to my website, i have not subscribed for SSL from my hosting and i am able to access some pages using https. Some times how ever when i use https the pages loads but without CSS (broken page). Thirdly if i go to the login page and try to login nothing happens (using http) but when change to https and refresh the page i am automatically logged in without going through the 2 factor authentication process.
lastly site builder has been acting up as well, when i try to edit a widget by clicking on the gear icon, nothing happens. i have done integrity check and i have also cleared the cache.
My hosting company said i have mixed content on my page.
Login  page.png
Login page.png  •  200KB


updated by @musamensa: 06/02/17 03:21:33AM
Black-Eagle
Black-Eagle
@black-eagle
7 years ago
57 posts
Hello Musamensa.

I has the same issue when i activated ssl encrypt on my hosting.

You can add the following code in the ..htaccess file :

RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

You should not have the error anymore. On my site it worked.
updated by @black-eagle: 03/03/17 10:47:37AM
alt=
duke
@musamensa
7 years ago
248 posts
Thanks will give it a shot

Tags