Submitted by mehdi2jj on Sat, 03/02/2019 - 12:58
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
Submitted by andreychek on Sat, 03/02/2019 - 15:47 Comment #1
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!
Submitted by CEEWorld on Sun, 03/03/2019 - 11:48 Pro Licensee Comment #2
If you do not already have one create a
.htaccess
file in your sitespublic_html
directoryThen 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 usinga2enmod rewrite
then restart apache2 service.Regards.