Force HTTP to HTTPS

How to redirect all pages to your secured SSL domaine?

You can do it by modifying your .htaccess file by adding those lines:

RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www. [NC]
RewriteRule (.*) https://domaine.com/$1 [R=301,L]

just replace domaine.com by your hown domaine.
Last edited: Tue 28/07/2020
2 Comments
Reply LOULOU on 27 JUL 2020, 06:23
Is it comptable with other existing write rules?
SP4TZ responded to LOULOU on 27 JUL 2020, 06:24
Yes! But you have to put this one on the top of the other rules
Leave a comment

Forget Password ?

Enter your e-mail address below to reset your password.

Sign Up

Enter your personal details below:

An activation link will be sent to your email address.