Redirect NON SSL to SSL in virtualmin

Hello, What is the best way to forcibly redirect all NON-SSL requests to SSL ? I see there is an virtualmin redirect option but wanted to see if you already have some solution. or should we use htaccess or some such mechanism. Thanks much \|/

Status: 
Closed (fixed)

Comments

We don't have a built-in feature for this - but you could do it pretty easily using a .htaccess file that calls mod_rewrite.

Thank you Jamie.

\|/

I will look into adding an easy-to-use checkbox for this redirect in the next release though.

Actually, I just realized we already added the ability to do this in Virtualmin! Just go to Server Configuration -> Website Redirects, and create a redirect from / to https://domain.com/ that is only enabled for the non-SSL website.

Status: Active ยป Fixed