I'm trying to use the root IIS 7.5 web.config to redirect certain URLS.
For instance a perfect example of what I am trying to achieve is redirecting to WebMail.
So if someone was to browse to http://www.clientwebsite1.com/webmail they would be redirected to http://www.ownerwebsite.com/webmail.
I have this currently:
<location allowOverride="true">
<system.webServer>
<rewrite>
<rules>
<rule name="MEWebMail">
<match url="^webmail/([^/]*)$" />
<action type="Redirect" url="http://www.ownerwebsite.com/MEWebMail/" />
</rule>
</rules>
</rewrite>
</system.webServer>
</location>
Though so far it seems not to work, any ideas or can I even do this?
Thanks for your help.