How to using an .htaccess file to force HTTPS mode
More and more websites are installing an SSL certificate and converting to HTTPS (secure http). Traditionally e-commerce websites enforce HTTPS on their logged in and checkout pages, however there is a movement supported by big firms like Google, Microsoft, Mozilla to encourage webmasters to convert their websites to HTTPS only. With this in mind, Web Channel are making it easier than ever to secure your website with HTTPS. We have introduced a new AutoSSL feature on all our shared hosting, hosting plans. The AutoSSL feature is enabled by default so our hosting clients can enforce HTTPS on their websites.
To check the SSL certificate installed on your website, please type your website address into https://sslanalyzer.comodoca.com/
Whether you use the 90-day AutoSSL provided with your web hosting or you use one of the big brand certificates we sell from Comodo, GeoTrust or GlobalSign, you can use the following code to enforce HTTPS mode across your website.
Forcing visitors to use SSL can be accomplished through your .htaccess file using mod_rewrite. Simply add the following 3 lines to your .htaccess file:
If you do not have an .htaccess file, simply create one in the main directory of your website (public_html).
Don’t forget to replace exampledomain.com with your actual domain name!
You may also need to configure your website software to use HTTPS. If you have a WordPress website, there are two other steps, please see https://webchannel.ie/how-to-make-https-on-my-wordpress-website/