This is what I have right now. I would like all subdomains (sub.utrack.org) to be redirected to http://sub.utrack.org/accounts, but its looping cause there is still a subdomain in the URL. How can I say as a RewriteCond if the "/accounts" exists.
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.utrack\.org
RewriteCond %{HTTP_HOST} ([^.]+)\.utrack\.org [NC]
RewriteRule ^(.*)$ http://%1.utrack.org/accounts/ [R,L]