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?


#1

Hello guys,

When I type https://seaviewornothing.com on Chrome for Windows, it does show a lock icon
But when I type http:// or directly seaviewornothing.com, 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
SetEnv REGISTER_GLOBALS 0

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]