Bluehost Web Hosting Help

Force SSL on all pages

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 %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://example.com/$1 [R=301,L]

Substitute example.com with your domain name.

Knowledgebase Article 207,090 views bookmark tags: htaccess ssl website


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.

Wildcard SSL Certificates

How to use a WildCard SSL Certificate

Force a password change for a Resold account

How to force a resold account's owner to update their password

Related Help Content

htaccess Tutorial

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

Error Pages

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

How to activate a free WordPress SSL

Bluehost now provides free free SSL certificates for all WordPress sites. This article describes how to activate the free SSL for a WordPress site.

OSCommerce will not keep my sessions between HTTP and HTTPS.

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

Manage Service SSL Certificates

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

Comodo Positive SSL Certificate Seal

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

URL redirect rewrite using the htaccess file

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

Purchasing or Renewing SSL certificates

How to renew an existing SSL certificate--or purchase a new one, within your cPanel