Overview:
Avoid security warnings when accessing your site with an SSL certificate and forced HTTPS redirect.
Prerequisites:
Ensure you have a valid SSL installed on your cPanel services. If you do not have one, you can use cPanel's AutoSSL service by following this guide
Method
Log into your cPanel hosting service.
Navigate to the "Domains" tool.
Toggle the “Force HTTPS Redirect” option to on for any domains with an SSL installed.
This change should be immediate. To test, clear your browser cache and open your website, ensuring you specify HTTP://. The URL will automatically be redirected to the HTTPS:// version of the URL.
Manual Method
If you have any issues with the above method, you can manually create the redirect by adding the following code to the top of your ".htaccess " file:
# START HTTPS
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# END HTTPS
Editing your ".htaccess" file:
Log into your cPanel hosting service.
Navigate to the "File Manager" tool, which is under "Files".
Navigate to the "public_html" folder or to the folder where your website is located.
Locate your ".htaccess" file, right-click on it, then click "Edit".
By default, the ".htaccess" will be hidden - as it is a dot file. To reveal dot files in the File Manager, click "Settings" (top-right), then select “Show Hidden Files”, and then save this.
If the file doesn’t exist, click the "+ File" button to the top-left of the page, then create one of the same name.
Paste the above code at the top of the file on its own lines.
Can't find what you're looking for?
Create or manage support tickets directly with Micron21
You will need to register a new account if this is the first time lodging a ticket.
If you have previous lodged a ticket either online, email or over the phone you will already have an account. Please reset your password, if you have not logged into the support portal before.
Lodge a ticket
Manage existing tickets