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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...