Redirect / to https://www.abc.com

OS:- Ubuntu server 20.04
Webmin version:- 1.981
Virtualmin version:- 6.17

Hi,

I want to Redirect from / to https://www.abc.com.

I know it’s possible in Virtualmin but I forget how to do it? I want only one domain.

You need to have a certificate already requested and enabled for that domain.
Server configuration → website options → “Redirect all requests to SSL”

I have done this. the domain is going to https://abc.com. I want all redirects from http://abc.com, https://abc.com and http://www.abc.com to https://www.abc.com

Add this to a .htaccess file:

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]

Please help me in this. i did before but now I have forgotten.

I’ve done it before but not on that screen. Let’s say you want THISDOMAN to forward to THATDOMAIN. Go to the virtual server for THISDOMAIN.

Click on Server Configuration / Website Redirects and click on Add New Website Redirect. You should see this screen:

Then you just enter the URL path and the path where you want it to go. I recall having issues with getting the path right but it does work.