Search code examples
asp.net.netiisurl-rewritingiis-manager

Simple iis rewrite doesn't work


This is what I'm doing in iis manager:

iis - url rewrite -> Add rule ->

Action type: rewrite

Pattern: MySite.com (Exact match)

Rewrite url: MySite.com/Folder1/Default.aspx

So how do I return the Default.aspx page while maintaining the MySite.com in the address bar?


Solution

  • OK. So I found the answer:

    Only the part after the domain name and trailing slash should be entered.