2021-09-25, 06:22:48
Thanks for help Brex. Your option helped. I had to give up the www prefix and set a different redirect in htaccess .. below is the solution (with https) if will someone needed it..
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\.example\.com [NC]
RewriteRule (.*) https://example.com/$1 [L,R=301]
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\.example\.com [NC]
RewriteRule (.*) https://example.com/$1 [L,R=301]