HostMonster Web Hosting Help
How To Force SSL On All Pages In .htaccess File
You can force all of your pages to use HTTPS. To do this you will need to modify your .htaccess file.
Using the Code Editor in the File Manager, add these lines to the beginning of the .htaccess file.
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Knowledgebase Article
378,792 views
bookmark
share
tags: htaccess ssl website
Share or save this via:
Recommended Help Content
This article will show a way to protect specific pages of your website with SSL. This may have benefits for SEO and can be used on pages that contain forms, shopping carts or any other page where users might enter sensitive information.
How to use a WildCard SSL Certificate
Related Help Content
What is the .htaccess file and where can I find more information?
How do I perform a URL redirect/rewrite using the .htaccess file?
This article explains error pages and how they can be customized.
When I try to log into my OSCommerce shopping cart using https://secure.HostMonster.com/~username url, my shopping cart isn't the same. It is as though I have 2 carts, one for HTTP (unsecure) an
How do I use the free shared SSL Certificate?
How to run CGI scripts for Addon domains.
Where do I get a copy of the site seal for my SSL I purchased through HostMonster?
How to add a new SSL certificate for your different WM services.