.htaccess does not understand ^www\\. rule
^www\\.
#do not use this, because i want to redirect from https://www.somedomain.com #RewriteCond %{HTTPS} off
You have an additional condition with [OR] that can cause too many redirects. Fix it by using:
[OR]
RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^www\.somedomain\.com$ [NC] RewriteRule ^/?$ https://somedomain.com [L,R=301]
Completely clear browser cache before testing this.