Force HTTPS with .htaccess

  Print
To force your website to use SSL using a .htaccess file, add the following to your existing .htaccess file. If you don't have one, be sure to create it in the root of your website.

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Did you find this article useful?   0 out of 0 people found this article useful.

Related Articles


  • Comments

Add Comment

Replying to  

Self-Hosted Help Desk Software by SupportPal.

Login

 
Forgot password?
Register now

Language