How to Force HTTPS Using .htaccess in cPanel- CreemHost

by | Oct 25, 2020 | cPanel | 1 comment

After installing an SSL certificate if you see your website showing not secure or SSL not available, follow below steps to force https using .htaccess file

1. Login to cPanel and go to File Manager CreemHost cPanel URL

How to Force HTTPS Using .htaccess

2. Go to your domain root folder like public_html

How to Force HTTPS Using .htaccess


3. Then click on Settings in up right corner

How to Force HTTPS Using .htaccess

4. Then click on Show Hidden Files (dotfiles) and save it

How to Force HTTPS Using .htaccess

5. Then you will see .htaccess right click and edit it

6. Then you will see popup screen click again on Edit

7. Then add below code in top and save it

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]



After saving your domain will always open with https, thanks for reading and if you have any issue please submit ticket thanks

Submit Ticket

Buy Pure SSD Hosting


We provide 100% pure SSD web hosting in affordable price

Company Number: 12460021

York House Office 1934, GREEN LANE, WEST, PRESTON, PR3 1NJ, United Kingdom