Register your Australian Domain Name for $15.99/Year

Live System Status

๐Ÿ” How to Force HTTPS on Your Website (Redirect HTTP to HTTPS)

1 min read

Once your SSL certificate is installed ( how to install an SSL Certificate in cPanel ), youโ€™ll want to make sure your website always loads securely using https://. This not only protects your visitors but also boosts your SEO rankings โ€” Google gives preference to secure websites!

Below are multiple ways to force HTTPS on your website using cPanel, .htaccess, or WordPress.


โœ… Why Force HTTPS? #

  • ๐Ÿ”’ Encrypts data between your site and visitors
  • ๐Ÿ“ˆ Improves SEO and Google rankings
  • ๐Ÿšซ Prevents security warnings in browsers
  • โœ… Increases customer trust

๐Ÿ”ง Method 1: Force HTTPS Using cPanelโ€™s โ€œForce HTTPS Redirectโ€ (Easiest Way) #

This method is perfect for beginners and doesnโ€™t require editing any files.

๐Ÿ“ Step 1: Log in to cPanel #

  1. Go to yourdomain.com/cpanel
  2. Enter your login credentials

๐Ÿ” Step 2: Enable HTTPS Redirect #

  1. In cPanel, go to the Domains section
  2. Click on Domains
  3. Find your domain in the list
  4. Toggle the Force HTTPS Redirect switch to ON โœ…

๐ŸŽ‰ Thatโ€™s it! Your domain will now automatically redirect to https://.


โš™๏ธ Method 2: Redirect HTTP to HTTPS via .htaccess (Manual Method) #

This method is recommended for advanced users or if you’re using custom apps.

๐Ÿ“‚ Step 1: Open File Manager #

  1. In cPanel, go to File Manager
  2. Navigate to public_html
  3. Find and edit the .htaccess file

Canโ€™t see it? Click Settings and enable Show Hidden Files (dotfiles)


โœ๏ธ Step 2: Add Redirect Code #

Paste this at the top of your .htaccess file:

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

๐Ÿ’พ Save changes. Now, all visitors will be automatically redirected to HTTPS.


๐ŸŒ Method 3: Force HTTPS in WordPress (If Applicable) #

If youโ€™re using WordPress, hereโ€™s how to do it within the dashboard:

๐Ÿงฉ Option A: Use a Plugin #

  1. Install Really Simple SSL
  2. Activate the plugin
  3. It will handle HTTPS redirection and fix mixed content issues

๐Ÿ”ง Option B: Manually Set HTTPS in Settings #

  1. Go to Settings > General
  2. Make sure both WordPress Address (URL) and Site Address (URL) start with https://

๐Ÿ” Test Your Redirect #

After enabling HTTPS:

  • Visit http://yourdomain.com โ€” it should instantly redirect to https://yourdomain.com
  • Test with tools like Why No Padlock or SSL Labs

๐Ÿ“ข SEO Tip: Use 301 Redirects #

The methods above use 301 (permanent) redirects, which tell search engines to update your URLs โ€” preserving your SEO value and link rankings.


โ“ Need Help? #

Not sure which method is best? Let us help you secure your site:

Updated on April 10, 2025
Was this helpful?