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 #
- Go to
yourdomain.com/cpanel - Enter your login credentials
๐ Step 2: Enable HTTPS Redirect #
- In cPanel, go to the Domains section
- Click on Domains
- Find your domain in the list
- 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 #
- In cPanel, go to File Manager
- Navigate to
public_html - Find and edit the
.htaccessfile
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 #
- Install Really Simple SSL
- Activate the plugin
- It will handle HTTPS redirection and fix mixed content issues
๐ง Option B: Manually Set HTTPS in Settings #
- Go to Settings > General
- 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 tohttps://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:
- ๐ฌ Live Chat: ozzietel.au/contact-us
- ๐ Phone: 02 8328 1099
- ๐ง Email: support@ozzietel.com.au