Rule to setup www to non www and non SSL to SSL.
TO achieve this, enter the below htaccess rule,
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC]
RewriteRule ^(.*)$ https://domain.com/$1 [R=301,L]
</ifModule>
Save, and verify by accessing
http://www.domain.com redirects to https://domain.com.
Done
TO achieve this, enter the below htaccess rule,
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC]
RewriteRule ^(.*)$ https://domain.com/$1 [R=301,L]
</ifModule>
Save, and verify by accessing
http://www.domain.com redirects to https://domain.com.
Done