Change domain links in WHM to https instead of http

Amandaville

Registered
Nov 28, 2020
1
0
1
USA
cPanel Access Level
Reseller Owner
All of the domains under [List Accounts] in WHM link to the http version of the domain. How do I change WHM so that the domains link to the https version of each domain?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
2,194
298
213
cPanel Access Level
Root Administrator
Hey there! That's a good question, although there is not a way to adjust that. Normally the https link is handled with redirection at the site level so the direct link wouldn't matter, but this would be a great feature request to get submitted using the link in my signature.
 

GoWilkes

Well-Known Member
Sep 26, 2006
547
20
168
cPanel Access Level
Root Administrator
One option, if it's appropriate... you can force all of the sites on your server to use HTTPS, then when you click on the non-HTTPS link it would redirect automatically.

I accomplished this by creating ssl.conf at:

/etc/apache2/conf.d/userdata

Code:
RewriteEngine on

RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]