Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello I'm trying to redirect default.aspx to homepage using the code below but the code is not working
<add name="some-name" redirectMode="Permanent" redirect="Domain" ignoreCase="true" rewriteUrlParameter="IncludeQueryStringForRewrite" virtualUrl="http://www.domain.com/default.aspx" destinationUrl="http://www.domain.com/" />
Thanks
Using IIS Rewriting you can create a rule like so..
<system.webServer> <rewrite> <rules> <rule name="Canonical home page" stopProcessing="true"> <match url="^(home-page|default\.aspx)$" /> <action type="Redirect" redirectType="Permanent" url="/" /> </rule> </rules> </rewrite> </system.webServer>
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
301 Redirect default.aspx to homepage
Hello I'm trying to redirect default.aspx to homepage using the code below but the code is not working
<add name="some-name"
redirectMode="Permanent"
redirect="Domain"
ignoreCase="true"
rewriteUrlParameter="IncludeQueryStringForRewrite"
virtualUrl="http://www.domain.com/default.aspx"
destinationUrl="http://www.domain.com/" />
Thanks
Using IIS Rewriting you can create a rule like so..
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.