IIS7 URL Rewrite default.aspx
===

It's a common SEO requirement to 301 redirect the default.aspx page e.g. www.mysite.com/default.aspx -> www.mysite.com

However, this breaks page post backs.  Yes there are some ugly solutions via javascript or server side code.

Instead, is it possible to "rewrite" the url instead of "redirect"?  Changing the standard redirect to rewrite does not work.

    <rule name="Rewrite default page" stopProcessing="true">
        <match url="(.*?)/?Default\.aspx$" />
        <action type="Rewrite" url="{R:1}" />
    </rule>