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
Hi,
I have implemented a 301 permanent redirect using the url rewriting config. The problem is that
i rewrite from say http://mysite.com to http://web.mysite.com, the redirects works but it adds /default.aspx to the end of the url.
My question is how can i remove the default.aspx?
thanks
I'm not sure, but maybe it'll help if you rewrite to http://web.mysite.com/ --> ending slash
hi kip,
tried that and it still displays default.aspx
cheers
Just a guess; you're using IIS6 aren't you?
yeh using iis6
just resolved the issue by changing the rewrite rule, adding /(.*) to the end of the virtualurl worked.
what i thought would work:
<add name="301redirect"
redirect="Domain"
ignoreCase="true"
rewriteUrlParameter="ExcludeFromClientQueryString"
virtualUrl="http://mysite.com"
redirectMode="Permanent"
destinationUrl="http://web.mysite.com" />
what actually works:
virtualUrl="http://mysite.com/(.*)"
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Help 301
Hi,
I have implemented a 301 permanent redirect using the url rewriting config. The problem is that
i rewrite from say http://mysite.com to http://web.mysite.com, the redirects works but it adds /default.aspx to the end of the url.
My question is how can i remove the default.aspx?
thanks
I'm not sure, but maybe it'll help if you rewrite to http://web.mysite.com/ --> ending slash
hi kip,
tried that and it still displays default.aspx
cheers
Just a guess; you're using IIS6 aren't you?
yeh using iis6
just resolved the issue by changing the rewrite rule, adding /(.*) to the end of the virtualurl worked.
what i thought would work:
<add name="301redirect"
redirect="Domain"
ignoreCase="true"
rewriteUrlParameter="ExcludeFromClientQueryString"
virtualUrl="http://mysite.com"
redirectMode="Permanent"
destinationUrl="http://web.mysite.com" />
what actually works:
<add name="301redirect"
redirect="Domain"
ignoreCase="true"
rewriteUrlParameter="ExcludeFromClientQueryString"
virtualUrl="http://mysite.com/(.*)"
redirectMode="Permanent"
destinationUrl="http://web.mysite.com" />
cheers
is working on a reply...