After cPanel version 80 update, there is a new feature added letting user to force a domain to HTTPS redirect (with SSL certificate) with just a few clicks.
With this option it is possible for easy traffic redirection from unsafe HTTP to secure HTTPS thanks to your SSL certificate.
To turn on automatic redirection:
Log on to cPanel with this link (replace your-domain.eu with your domain address): https://your-domain.eu/cpanel
In “Domains” category click “Domains” icon
To force HTTPS redirection for your primary domain, you will need to force HTTPS redirection for a subdomain which is linked to your primary domain (it will show after hovering over the encircled question sign). If subdomains are not visible you will need to hover over the cog icon located in the top right corner and turn on the <“Show subdomains”> option.
Next, click on the “Force HTTPS Redirect” toggle to change the value.
Now you officially enabled HTTPS redirection. You can check your green lock icon in your browser:
And that’s how we can make our site safer with just a few clicks without direct influence in files like .htaccess or databases.
Thanks to that function we are sure that we won’t make mistakes in configuration files and that our traffic will be secure.
You should remember that this method is intended for CMS which don’t have a automated HTTPS redirection feature on the level of admin panel.
For example, WordPress has this functionality and the HTTPS redirection should be done from the WP Dashboard. Here is a guide for this kind of action:
- A direct connection between Smarthost and Cloudflare - October 2, 2024
- Why is Redis better than Memcached? - September 16, 2024
- What is DMARC and why should you have it? - July 12, 2023