HTTPS redirect future with WHM v80


Super Moderator
Staff member
In case people didn't know, v80 is going to make it super easy to enforce HTTPS for new domains.

This feature was added in v80:

The best part of these feature is that it doesn't involve the .htaccess, which allows for .htaccess to stay cleaner and require less rules.

All redirects get added directly to the vhost.

<VirtualHost xx.xx..xx.xx:80>
<IfModule rewrite_module>
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/\.well-known/(pki-validation|cpanel-dcv)/
RewriteRule ^ - [END]

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

Definitely something to look forward to in making HTTPS redirects easier.

Just felt like sharin'