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
.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 #
- 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