Hi everyone,
I got a website under Contao 3.5 on a shared host. I've activated ssl for having https access. I'd like to know how I can force http access automatically routed to https.
OVH (my host) gives two way :
- create a redirection in its manager ; I've tried, this wasn't a great success for now…
- or add this lines in .htaccess
Can I add this in Contao's 3.5 .htaccess ? In which part ?Code:RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.votredomaine.fr/$1 [R=301,L]
Thanks
Bookmarks