I am using this to re-write any attempt to go to www. It works just fine.

RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.mysite\.net$ [NC]
RewriteRule ^(.*)$ http://mysite.net$1 [R=301,L]

HOWEVER:

I have sub directories like:

http://mysite.net/sub-dir1/
http://mysite.net/sub-dir2/
http://mysite.net/sub-dir3/

The above rewrite does not include these subdirectories so I can easily go to http://www.mysite.net/sub-dir2/ with the WWW which I don't want to.

How can I change the above rewrite to include the sub directories as well?

Thanks.