I am trying to make it so that all requests that use a subdomain are rewritten in such a way that they are sent to the server as "regular" request without the subdomain. I have created the mod_rewrite code below but it doesn't seem to be working. Any advice is greatly appreciated.
Options +FollowSymlinks RewriteEngine on RewriteRule (.*?).mydomain.com/(.*) http://mydomain.com/$2
I want everything to still appear in the user's address bar window as:
(where $2 is whatever path they originally entered in the address bar)