From 3362ebb7447e4227122925f99e4c9e388bd918c1 Mon Sep 17 00:00:00 2001 From: Aaron Max Fein Date: Sun, 8 Apr 2018 21:35:37 -0700 Subject: [PATCH] Updated Simple guide to add TLS cert to cpanel (markdown) --- Simple-guide-to-add-TLS-cert-to-cpanel.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Simple-guide-to-add-TLS-cert-to-cpanel.md b/Simple-guide-to-add-TLS-cert-to-cpanel.md index 4e8a876..9eb80bf 100644 --- a/Simple-guide-to-add-TLS-cert-to-cpanel.md +++ b/Simple-guide-to-add-TLS-cert-to-cpanel.md @@ -86,14 +86,13 @@ Go to cPanel File Manager, create a .htaccess file in the root of your public_ht or, for a possibly faster approach try using `` -`## Only uncomment these lines if you know what you're doing` -`#RewriteCond %{HTTP:X-Forwarded-Proto} https [NC]` -`#RewriteRule ^ - [S=1]` -`## BEGIN HTTPS Catch-All` + `RewriteCond %{SERVER_PORT} 80` + `RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(.*)\ HTTP/ [NC]` + `RewriteRule ^(([^/]+/)*)$ https://%{HTTP_HOST}/ [R=301,L]` -`## END HTTPS Catch-All` + ``