HTTPS only website


back again ;o) - I want to ask about setuping https only website. We got a wildcard certificate *.dom.tld - and I want to establish https websites by default (this can be setuped in virtualmin simply I know), but I want to redirect http -> https by default.

Is there any simple way how to configure my vitualmin installation in this way?

Just fully functional https and http redirected to https.

Thanks a lot.

There isn’t an easy way to do that inside the Virtualmin GUI.

However, you can add a .htaccess file to your public_html folder that can do it.

It can be as simple as putting the following in your .htaccess file:

RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$$1 [R,L]

Simple and functional - no problem.

I don’t see why a new feature like this can’t be added…

Currently you have:

Apache website enabled

SSL website enabled

Why can’t they be exclusive of each other ? Makes no sense something like this can’t be done, half of the code is already there.