redirect www to non www wordpress plugin code example
Example: how to force non www and https wordpress
# Redirect www to non-www
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.charlestonboatdetailing\.com [NC]
RewriteRule ^(.*)$ https://charlestonboatdetailing.com/$1 [L,R=301]