Before you proceed
- Make sure you have an SSL Certificate installed. If you don’t have one, you can follow the steps in this guide to install a free one.
Adding a https:// redirect
HTTPS redirection in cPanel
- Log in to cPanel.
- Click on Domains under the Domains section.
- Under Force HTTPS Redirection click on the switch to turn it on for your domain name (Note: cPanel won’t let you turn this option on if you don’t have an SSL certificate installed).
`# START Force HTTPS
RewriteEngine On
RewriteCond % !on
RewriteRule (.*) https://%% [L,R=301]
END Force HTTPS`
Editing your .htaccess file
- Log in to cPanel.
- Click on File Manager under Files.
- Navigate to the public_html folder, or the folder where your website is located.
- Edit the .htaccess file:
- If the file already exists, right-click on it and click Edit.
- If the file doesn’t exist, click the + File button to the top-left of the page and create one with the same name.
- Paste the above code at the top of the file.
- Click Save Changes.
Updating your site URLs (WordPress websites only)
- Log in to your WordPress admin dashboard.
- Navigate to Settings → General.
- Change the WordPress Address and Site Address to include “https://” at the start of the URL instead of “http://”.
Using Really Simple SSL (WordPress Websites Only)
- Log in to your WordPress admin dashboard.
- Navigate to Plugins → Add New and search for Really Simple SSL and install it.
- Activate the plugin under Plugins → Installed Plugins.