Just Host Web Hosting Help

Force SSL on all pages.

Summary

You can force all of your pages to use https. To do this you will need to modify your .htaccess file.

Force SSL

Use the .htaccess file. Edit the .htaccess file and add these lines.
RewriteEngine On
        RewriteCond %{SERVER_PORT} 80
        RewriteRule ^(.*)$ https://example.com/$1 [R=301,L]
Note: Substitute example.com with your website name.
Knowledgebase Article 34,991 views bookmark tags: htaccess ssl website (updated 351 days ago)


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

What to do if Google has indexed your addon domain with https (updated 740 days ago)
Knowledgebase Article 13,267 views tags: google htaccess https index

How to use a WildCard SSL Certificate (updated 252 days ago)
Knowledgebase Article 21,154 views tags: htaccess reseller ssl subdomain subfolder wildcard

How to force a resold account's owner to update their password (updated 251 days ago)
Knowledgebase Article 9,296 views tags: force password reseller resold whm

Related Help Content

What is the .htaccess file and where can I find more information? (updated 129 days ago)
Knowledgebase Article 421,338 views tags: htaccess tips tricks

When I try to log into my OSCommerce shopping cart using https://secure.Justhost.com/~username url, my shopping cart isn't the same. It is as though I have 2 carts, one for HTTP (unsecure) an (updated 1422 days ago)
Knowledgebase Article 45,389 views tags: ssl

This article explains error pages and how they can be customized. (updated 196 days ago)
Knowledgebase Article 66,990 views tags: customize pages

How to add a new SSL certificate for your different WM services. (updated 107 days ago)
Knowledgebase Article 1,749 views tags: ssl whm

Where do I get a copy of the site seal for my SSL I purchased through Just Host? (updated 391 days ago)
Knowledgebase Article 72,496 views tags: cert image logo seal secure ssl

How to renew an existing SSL certificate--or purchase a new one, within your cPanel (updated 346 days ago)
Knowledgebase Article 16,551 views tags: cert certificate layer secure security socket ssl

To help with installing an SSL certificate for an account on a dedicated server through the WHM (updated 63 days ago)
Knowledgebase Article 992 views tags: assign dedicated reseller server ssl whm

How do I perform a URL redirect/rewrite using the .htaccess file? (updated 367 days ago)
Knowledgebase Article 375,062 views tags: htaccess redirect rewrite url