This is a very simple thing that I want to do,it is just I can't make it to work!
I simply want to make 301 permanent redirect from domain.com/default.aspx to domain.com. I need this to help in SEO.
I tried all sort of things found on the internet, and the browser just goes to infinite loop. I tried:
<rule name="default page" stopProcessing="true"> <match url="(.*)default.aspx$" /> <action type="Redirect" url="{R:1}" redirectType="Permanent" /> </rule>and on disperation I also tried:
<rulename="default page"stopProcessing="true">
<matchurl="http://www.domain.com/default.aspx$"/>
<actiontype="Redirect"url="http://www.domain.com/
{R:1}"redirectType="Permanent"/>
</rule>
Any help would be appreciated. I am using IIS 7.5,ASP.NET 4.0,integrated mode.
I also have a canonical rule to redirect domain.com to www.mydomanin.com, and this works fine!
Thanks in advance