This seems to be a non-issue for many people (read: I can\'t find an answer), but I would like to update the following htaccess code to not only remove the \'www\' from the
I think you're close, but try the following:
# force non-www domain RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC] RewriteRule (.*) http://example.com/$1 [R=301,L]
Not sure exactly what you mean about sub-directories, but this follows your example.