Green Secure Lock Won't Appear


#1

I just configured the Let’sEncrypt using SSH on a Apche2, Bitnami server.

When I go to my site via https: (https://www.jefvandegraaf.com) the green secure lock appears for a moment then disappears.

Does anyone have any ideas why this is happening? Did I configure let’s encrypt incorrectly?


#2

https://www.jefvandegraaf.com doesn’t have a green lock because the certificate you got is only valid for jefvandegraaf.com. You might want to get a new one that’s valid for both.

https://jefvandegraaf.com doesn’t have a green lock because it references insecure resources. See https://www.whynopadlock.com/ for details.


Getting The Green Bar in Browsers - Whats Required (Updated: May 2017)
#3

This helped. The Secure logo now appears.

The next issue I’m having is understanding how to create a redirect for all non HTTPS to move to HTTS://www.

Many online sources say to insert this code into htaccess:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://www.domain.com/$1 [L,R=301]

RewriteCond %{HTTP_HOST} !^www.
RewriteRule ^(.*)$ https://www.domain.com/$1 [L,R=301]

Where do I find HTACCESS and do I just dump that code in anywhere?


#4

If you control the entire configuration of the web server (e.g. you own the hardware, or it’s a Virtual Machine you administrate) you can just put that in the Apache configuration file, preferably one specific to the site you want to re-write so that you don’t confuse yourself by messing up some other site you work on another day.

If you don’t have such control, your hosting provider may allow you to create files named .htaccess in the web root where you put files for the site which have some Apache configuration in them, such as these rewrite commands.


#5

Thanks for the response tialaramex.

I have access to the VM. I am just at a loss at understanding how to write a file from scratch. Do you know of any resources that could help. I have a very basic knowledge of navigating SSH and editing files. Creating this htaccess.conf seems a bit beyond my ability (for right now).

This VM is only hosting 1 wordpress site. It’s completely experimental so I don’t mind messing it all up. It’s not hard to start again. It just consumes time.


#6

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