How to Redirect HTTP to HTTPS in cPanel
Securing your website with an SSL certificate is essential for building trust with your visitors and improving your Google search rankings. At Websoulhost, we provide free Unlimited SSL Certificates with all our hosting plans.
However, simply having an SSL installed isn't enough. You must also force your website to load the secure https:// version. Here is how to do it easily.
Method 1: The Easy Way (cPanel Force HTTPS)
Most modern cPanel interfaces (like the Jupiter theme) have a built-in toggle for this. This is the safest and easiest method for beginners.
- Log in to your Websoulhost cPanel.
- Scroll down to the Domains section and click on Domains.
- You will see a list of your domains. Look for the column labeled Force HTTPS Redirect.
- Simply toggle the switch to ON. It may take up to 5 minutes to take effect globally.
Method 2: The Advanced Way (Using .htaccess)
If you prefer manual control or are on a specific LiteSpeed server configuration, you can add a redirect rule to your .htaccess file.
- In cPanel, open the File Manager.
- Navigate to the
public_htmlfolder. - Click Settings (top right corner) and ensure "Show Hidden Files (dotfiles)" is checked.
- Right-click the
.htaccessfile and select Edit. - Add the following code right below
RewriteEngine On:
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Click Save Changes. Your website will now automatically redirect all visitors to the secure HTTPS version.
Frequently Asked Questions
Will redirecting to HTTPS hurt my SEO?
No. A 301 (permanent) redirect tells search engines like Google that your site has permanently moved to the secure version. Google actually prefers HTTPS sites and may boost your rankings.
I see a "Mixed Content" warning after redirecting. What do I do?
This means some images or scripts on your site are still loading via "http://". If you use WordPress, you can fix this instantly by installing a free plugin like "Really Simple SSL".