today:
286
yesterday:
590
Total:
1,737,439

Technology

Force SSL on all pages

admin 2018.12.26 22:23 Views : 371

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