Submitted by username9 on Tue, 02/09/2016 - 16:10 Pro Licensee
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
Submitted by JamieCameron on Tue, 02/09/2016 - 22:46 Comment #1
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.Submitted by username9 on Wed, 02/10/2016 - 05:37 Pro Licensee Comment #2
Thank you Jamie.
\|/
Submitted by JamieCameron on Wed, 02/10/2016 - 17:36 Comment #3
I will look into adding an easy-to-use checkbox for this redirect in the next release though.
Submitted by JamieCameron on Thu, 02/11/2016 - 23:58 Comment #4
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.
Submitted by JamieCameron on Thu, 02/11/2016 - 23:59 Comment #5