I have setup a URL rewrite in IIS 7 for a particular site, that has 2 bindings.
- main.mydomain.com
- hub.mydomain.com
I have also applied a URL Rewrite Rule as shown below:
match (.*)
and then
under the condition
where {HTTP_HOST}
matches ^hub\.mydomain\.com$
301 redirect to
http://main.mydomain.com/hub/home.html
and this works, the purpose was to have hub.mydomain.com
direct the user to a URI of http://main.mydomain.com/hub/home.html
I have now been asked to change this so that the hub.mydomain.com
remains in the user's browser address but that they are shown the correct /hub/home.html
content.
How can this be achieved? I presume that as the name suggests, URL Rewrite is no longer suitable? and if so how else can I do this?
EDIT:
main.mydomain.com
still needs to go to the root of the website.