Able to access both HTTP & HTTPS
-
The problem has since been solved courtesy of live chat support, but I wanted to dig a bit deeper in order to know just how this could happen in the first place and what to look out for in the future.
The main reason you want either http or https, and not both is this causes duplicate content, something Google doesn’t like, and we have been wondering why some of our rankings have dropped a little over the last few weeks.
Even though the toggle in the SG Optimizer plugin was set to force HTTPS, I was still able to access (the front of) my site via HTTP. I checked the .htaccess file and the force rule was and still is there, as set by the plugin. Weird thing is this problem was not site wide, I could only access the home page via https no matter what, but when I removed the s from the url of any post or pages I was directed to http, and was no longer logged into WordPress as I have configured WP to only serve the dashboard over https.
As it turns out, the toggle in Let’s Encrypt settings in cPanel was off, for some reason. I know I didn’t turn it off, but what I did do was add a wildcard, so I could also access a staging copy securely. This I did a few weeks ago, and my theory is that this is what might have caused the LE setting in cPanel to switch off.
I also recently switched to php 7.3, and moved the domain to another registrar, but I can’t imagine how those things might have had anything to do with it.
Any ideas?
Many thanks.
- The topic ‘Able to access both HTTP & HTTPS’ is closed to new replies.