ok, ive done that a few times before, but now I just can't recall how. I want all subdomains of a URL to go to the www version of it, like abc.somesite.com & zzz.somesite.com & whatever.somesite.com will all be directed to www.somesite.com.
RewriteEngine On RewriteCond %{HTTP_HOST} ^.domain\.com$ RewriteRule ^(.*)$ www.domain.com/$1 [L,R=301] Code (markup): Havent testet it, but it should work.