RewriteCond %{HTTP_HOST} ^www.domain.com$
RewriteRule ^/?$ "http://domain.com/" [R=301,L]<link rel="canonical" href="<?php echo 'https://' . $_SERVER[HTTP_HOST] . $_SERVER[REQUEST_URI]; ?>" />
3
●150
RewriteCond %{HTTP_HOST} ^www.domain.com$
RewriteRule ^/?$ "http://domain.com/" [R=301,L]<link rel="canonical" href="<?php echo 'https://' . $_SERVER[HTTP_HOST] . $_SERVER[REQUEST_URI]; ?>" />