I have a domain which is accessible on http://www.example.com
.
I want to remove the www.
part.
I am using a .htaccess file, but it isn't working.
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteRule ^ https://example.com%{REQUEST_URI} [L,R=301,NE]