I’m running a WordPress blog that has an issue with HTTPS redirect. Except home page, no other URL is being redirected to HTTPS if you visit via HTTP.
I want to redirect all HTTP traffic to HTTPS. Currently, only the Home page(http://www.example.com) is being redirected to HTTPS if you try with HTTP.
but if you visit http://www.example.com/page1, then it won’t be redirected to HTTPS and stays at HTTP.
I don’t want to use any plugin such as “really simple SSL”. After a lil’bit of searching over net, I found that I can modify the
.htaccess file to do that. Then I tried to understand .htaccess file (considering I never worked with PHP or WordPress or even Apache before). I got to know that
RewriteEngine On should appear only once in your file but in my case, it’s appearing twice. maybe some plugin or theme had modified this that i’m not aware of. below is the content of my .htaccess file.
I don’t have any subdomains. only single domain.
So to clear my doubts, I have two questions.
1) Is this .htaccess file correct? I mean can we have two
RewriteEngine On lines? that too outside the , again I’m not very familiar with this syntax.
2) What should I change to reflect HTTPS redirection on all of my pages?
PS: these are one of the links that I have visited-