I am trying to mod-rewrite based on a sub-domain. How do I take the subdomain and append it to the end of my new domain?
Example:
RewriteCond %{HTTP_HOST} ^users\.example\.com$
RewriteRule ^(.*)$ http://www.example.com/?subdomain=[variable for sub] [L]
How do I get 'users' into [variable for sub]?