Try the below code,it will redirect to https without www and works for me
RewriteEngine On RewriteCond %{HTTPS} off RewriteCond %{HTTP_HOST} ^(?:www\.)?(.*)$ [NC]RewriteRule (.*) https://%1%{REQUEST_URI} [L,R=301]
Try the below code,it will redirect to https without www and works for me
RewriteEngine On RewriteCond %{HTTPS} off RewriteCond %{HTTP_HOST} ^(?:www\.)?(.*)$ [NC]RewriteRule (.*) https://%1%{REQUEST_URI} [L,R=301]