today:
610
yesterday:
719
Total:
1,770,394

Technology

Force SSL on all pages

admin 2018.12.26 23:23 Views : 372

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  222,249 views  bookmark 
 share 
tags: htaccess ssl website