You want to force all users/client to access your website using https instead of http.
Requirement:- If you do not have a valid SSL Certificate, you will need to buy it. You can check the price here if you would like to buy it from us. Once you have your own SSL Certificates you will need to installed it at your cPanel account. If you already have one, you can install it directly to your cPanel account.
- Make sure your SSL Certificate that you are going to install onto your cPanel has your domain as the CN info. else, you will get SSL Certificate error notification.
You will need to add below script into your .htaccess
- Login to your cPanel and click on the File Manager (Make sure you tick on "Show hidden files")
- Go to your public_html folder and find .htaccess file.
- Select .htaccess file and right click on it. Please select Edit option or Code edit option.
- Now it will open a new tab with contents inside your .htaccess file.
- Copy below script and paste it inside your .htaccess
<IfModule mod_rewrite.c>
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI}$1
</IfModule> - Click save button and test it.