HTTPS not working!

I installed ssl certificate correctly and open my website in the browser. I should set advanced to allow the connection to use https however it should automatically redirect to https and when I open it in mobile device it doesn't even show that 'advanced' to allow https connection. TOTALLY IT DOESN'T WORK WITH HTTPS. How can I fix it? thanks

Status: 
Active

Comments

Howdy -- it looks like you're using Virtualmin GPL there, the area here is for folks using Virtualmin Pro.

It's no problem to get support!

But you'd want to use the Forums for support.

We monitor the Forums, along with lots of wonderful folks in the community. Thanks!

If you do not already have one create a .htaccess file in your sites public_html directory

Then add the following code to it.

RewriteEngine On

RewriteCond %{HTTPS} off
RewriteRule (.*) https://yourdomain.tld%{REQUEST_URI} [L,R=301,NC]

This will redirect any traffic to your site to use https even mobile browsers.

Make sure you have apache2 module mod_rewrite enabled if not enable it using a2enmod rewrite then restart apache2 service.

Regards.