Htaccess: reescribe desde http a https y www a non-www

Estoy tratando de reescribir el formulario http a https y www a URL que no sean www.

Básicamente si alguien va ahttp://www.example.com necesitan ser redirigidos ahttps://example.com y todas las demás instancias de URL incorrectas (http://ejemplo.com, etc.)

Intenté hacer esto juntando sugerencias:

RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
RewriteCond %{HTTP_HOST} ^www\.garrysun\.com [NC]
RewriteRule ^(.*)$ https://garrysun.com/$1 [L,R=301]

Pero cuando verifico la URL en un verificador de redireccionamiento obtengo errores ...http://garrysun.com funciona bien y va ahttps://garrysun.com perohttp://www.garrysun.com obtiene esto:

Enlace marcado:http://www.garrysun.com Tipo de redireccionamiento: 301 movido permanentemente redirigido a:https://garrysun.com/https://www.garrysun.com

¿Cómo puedo corregir mi código de reescritura?

PD - Estoy usando OpenCart 1.5.4 y también tengo el siguiente código de reescritura sobre las cosas nuevas (no sé si afecta a algo):

RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

Respuestas a la pregunta(1)

Su respuesta a la pregunta