Step1: Login to WHM.
Step2: Go to Home >> Server Configuration >> Tweak Settings.
Step3: Locate the option Choose the closest matched domain for which that the system has a valid certificate when redirecting from non-SSL to SSL URLs. Formerly known as “Always redirect to SSL/TLS”.
Step4: Click on ON to enable.
Step5: Click on Save.