OVH Community

Welcome to your community space. Ask questions, search for information, post content, and interact with other OVH Community members.

Let's encrypt not working - Wrong htaccess?


Hello guys,

When I type on Chrome for Windows, it does show a lock icon
But when I type http:// or directly, no lock on Chrome for windows.

Am I doing anything wrong with my htaccess, located at the root ?
Here is the htaccess. Thank you.

SetEnv PHP_VER 5_3

RewriteEngine On

www -> no-www

RewriteCond %{HTTP_HOST} ^www.(.+)$
RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L,NE,QSA]

http -> https

RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L,NE,QSA]