# Redirect any folders to the website root RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.*)/$ /$1 [L,R=301] # Redirect any subdomains to the website root RewriteCond %{HTTP_HOST} !^www\.dothebest\.club$ [NC] RewriteRule ^(.*)$ http://www.dothebest.club/$1 [L,R=301]