Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

301 Redirect from domain.com/default.aspx to domain.com

$
0
0

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">
<match
url="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

Viewing all articles
Browse latest Browse all 27852

Trending Articles