I have set redirect from http to https under Virtuamin configuration, now I would like to redirect for all vhosts www to no-www. Is there a setting somewhere?
Under vhost tried:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.(.)$ [NC]
RewriteRule ^/(.)$ https://%1/$1 [R=301,L]
A sub domain shouldn’t have www, This can be set in your sub-domains directives Services -> Configure Website -> Edit Directives and remove the line that says ServerAlias www.. You should do the same for SSL if your site is running as an SSL site.