Force HTTP redirect to HTTPS - cPanel - WebfulHost

Опубликовано: 12 Июнь 2026
на канале: Webful Creations
479
6

How to force HTTP redirect to HTTPS in cPanel or via FTP. In this video we are trying to show you how you can force http:// url's redirect automatically to https:// from your cPanel.

The main or primary domain is easily redirectable but when its Add on domain then you have to use a small piece of code in your .htaccess file which is listed below.

Make sure to remove RewriteEngine on if it already exists.

[code]
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
[/code]

Visit: https://www.webfulhost.com/