Http to https on (all) accounts
Maybe I have missed it somewhere, but how can we handle http to https redirect for the accounts in WHM.
I know we can do it via changing .htaccess for each account, but with thousands of accounts this is not really an option, and htaccess files tend to be updated for accounts using CMS
Force SSL in WHM -> Server Configuration -> Tweak settings have nothing to do with this as I understand it. It is only for cpanel, webmail etc.
Are there any other setting forcing all accounts to https? Preferrable setting all accounts to https and being able to set per account so we can do exceptions for the sites that do not work with https.
-
Hello, You could setup a custom Mod_Rewrite rule that redirects HTTP requests to HTTPS and apply it to all virtual hosts using the instructions at: Modify Apache Virtual Hosts with Include Files - EasyApache 4 - cPanel Documentation The following third-party URL may help you with determining the best rewrite rule to implement: http to https apache redirection Thank you. 0 -
Thank you cPanelMichael. I was looking for using .htaccess in some way, but this solution is much better and easier. 0
Please sign in to leave a comment.
Comments
2 comments