Bluehost India 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]



Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

Protect Specific Pages With SSL

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 Edit An .htaccess File - Edit htaccess file in cPanel's File Manager

Explains how to edit the .htaccess

Wildcard SSL Certificates

How to use a WildCard SSL Certificate

Related Help Content

htaccess Tutorial

What is the .htaccess file and where can I find more information?

How To Redirect Rewrite Using The htaccess File - www to non-www

How do I perform a URL redirect/rewrite using the .htaccess file?

Error Pages

This article explains error pages and how they can be customized.

OSCommerce will not keep my sessions between HTTP and HTTPS.

When I try to log into my OSCommerce shopping cart using https://secure.Bluehost.in/~username url, my shopping cart isn't the same. It is as though I have 2 carts, one for HTTP (unsecure) an

How To Activate Free SSL Certificate - Free Wordpress SSL Setup

How do I use the free shared SSL Certificate?

How to fix ExecCGI in .htaccess

How to run CGI scripts for Addon domains.

Comodo Positive SSL Certificate Seal

Where do I get a copy of the site seal for my SSL I purchased through Bluehost India?

Manage Service SSL Certificates

How to add a new SSL certificate for your different WM services.