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:
just replace domaine.com by your hown domaine.
Last edited: Tue 28/07/2020
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.
2 Comments
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