1. Home
  2. Knowledge Base
  3. Website
  4. Website Tips
  5. How to setup force SSL with .htaccess

How to setup force SSL with .htaccess

You can force an HTTPS connection on your website by adding these rules in your website’s .htaccess file:

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

Now the website will directed to https.

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support