I\'ve looked around and have attempted some rules and conditions that worked; while some did not work or the condition would capture too much causing other domains to also r
Try this rule:
# remove www RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^ http://%1%{REQUEST_URI} [NE,R=301,L] RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com$ RewriteRule !^subfolder/ /subfolder%{REQUEST_URI} [L]