I use this
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ https://kanzan.se%{REQUEST_URI} [L,NE,R=301]
to redirect ALL www to non-www, but it doesn't work when I type https://www.kanzan.se. The www is still there!