How to enforce SSL on your website Print

  • 0

How to enforce SSL on your website

1. Login to your cpanel
2. Click on file manager
3. Click on publim_html
4. Click on settings at the top right hand
5. Check the "Show Hidden Files" button
6. Double click the .htaccess file to edit it
7. Put the following codes anywhere in the htaccess file

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]


Was this answer helpful?

« Back