We're a bit green when it comes to this stuff and don't fully understand the answers found (we might also be using the wrong search terms).
Problem
We need to redirect a subdomain to another domain but mask the redirected domain.
So that this redirect:
subdomain.domain.com –> domain.com
Shows in the browser URL bar as:
subdomain.domain.com
And obviously any pages show correctly as:
subdomain.domain.com/page-name
Is this possible?
Research
Some answers we've found talk about URL re-writing and others talk about a proxy pass.
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html
Redirects and masking with Apache
But we don't fully understand how to set those up - i.e. what exactly goes into each virtual host and a step by step?
Both domains will be hosted on the same server and we have access to the virtual hosts.
Any help or pointers in the right direction would be much appreciated.
Cheers
Ben