www to non-www URLs 301 Redirect Generator for Htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.aswfounders.com$
RewriteRule (.*) https://aswfounders.com/$1 [R=301,L]
</IfModule>

HTTPs vs HTTP URLs 301 Redirect Generator for Htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>