For example:
www.example.com and subdomain.mydomain.com are on the same server.
When I put example.com in the address bar, I want it to serve the pages from subdomain.mydomain.com, but still show as example.com in the browser. So, if the old URL was:
subdomain.mydomain.com/this/stuff?is_cool=yes
the new url would be
www.example.com/this/stuff?is_cool=yes