I installed SSL on my Site. when I open it on my Android phone it opens on "http". Please help me

Username (e.g. epiz_XXX) or Website URL

URL: https://ljsservices.42web.io/

Error Message

I installed SSL from zeroSSl on my Site. When I open my website on pc it opens on “https”, but when I open it on my Android phone it opens on “http”. Later I re-install SSL from gogetSSL on my site. But stil having the same problem.
I checked the “Really Simple SSL” plugin, and it says my doesn’t have any SSL. But when I checked “sslshoper” site it says ssl is installed on my site. Please someone help me to resolve this issue…

Other Information

Did you do this?

3 Likes

I checked your site with HTTPS and I see a green lock, which means the SSL itself is working. But when I visit your site without SSL, I don’t get redirected to the HTTPS version. That’s likely why you get the warning on your phone.

If you’re using WordPress, the Really Simple SSL plugin should be able to do that. Note that you may need to open your website with HTTPS yourself to convince the plugin that HTTPS is in fact installed.

If that doesn’t work, you can also just set the .htaccess rules by hand to force HTTPS redirects, as we’ve documented here:

3 Likes

Okey, I want to use the .htaccess file. So, when I check my file manager, I noticed a .htaccess file was present in my file manager. But it should be in the htdocs folder. Moreover, alhough there was no code in this file, some comments were written.
But now the question is what should I do now? Do I delete this .htaccess file (which is present on my home directory) and create a new .htaccess file in the htdocs folder !!! where would the new code :

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]*

So, what will solve my problem? please answer those two question… please…

Than you

Don’t change that .htaccess file on your root folder.
Instead, click on htdocs and create a new file called .htaccess and paste in the following code:

RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:CF-Visitor} !{"scheme":"https"}
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

That .htaccess file basically:

  • Adds the default error (403, 404, 500) pages
  • Makes the default indexes be index.php, index.html, index.htm and index2.html
4 Likes

Instead of

I believe

RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https [OR]
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP:CF-Visitor} !{"scheme":"https"}
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

will be more suitable

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.