Green Secure Lock Won't Appear

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

When I go to my site via https: ( 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? doesn’t have a green lock because the certificate you got is only valid for You might want to get a new one that’s valid for both. doesn’t have a green lock because it references insecure resources. See for details.

1 Like

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 ^(.*)$$1 [L,R=301]

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

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

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.

1 Like

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.

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