Rewrite URL in IIS7 .NET MVC
- by user135498
Hi,
I'm trying to rewrite the url:
https://mydomain/phone-append
to
https://mydomain/Service/PhoneAppend
using the following rule:
<rewrite>
<rules>
<rule name="Phone Append">
<match url="phone-append" />
<action type="Rewrite" url="/Services/Index" appendQueryString="true" />
</rule>
</rules>
</rewrite>
The rule works fine if the rewrite url is /Services but when I change it to /Services/PhoneAppend I get a page not found error. I've been pulling my hair out for a couple hours. Any ideas?
Thanks,
Chris