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
I need to rewrite some old .asp pages to umbraco pages, but it is not working as I would like.
old page is: /index.asp?PageID=39&OID=0
new page is: /en
<add name="redirectoldurltest" virtualUrl="^~/index\.asp\?PageID=39(.*)" rewriteUrlParameter="ExcludeFromClientQueryString" redirectMode="Permanent" redirect="Application" destinationUrl="~/en" />
This however is not working.
if i try this code:
<add name="LegacyRedirect" virtualUrl="^~/index\.asp" rewriteUrlParameter="ExcludeFromClientQueryString" redirectMode="Permanent" redirect="Application" destinationUrl="~/"/>
It works, however, the querystring parameters are appended to the URL and i don't want them. They should be discarded.
I need to use the PageID parameter because the ID tells me to which new page I should redirect.
Can anybody help me?
thanks
anybody?
Got it.
<add name="LegacyRedirect" virtualUrl="^~/legacyPageWithParameters.asp?(.*)$" redirectMode="Permanent" redirect="Application" rewriteUrlParameter="IncludeQueryStringForRewrite" destinationUrl="~/dotNetAPSXPageLoseTheParameters.aspx"/>
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Need some help URL rewriting
I need to rewrite some old .asp pages to umbraco pages, but it is not working as I would like.
old page is: /index.asp?PageID=39&OID=0
new page is: /en
This however is not working.
if i try this code:
It works, however, the querystring parameters are appended to the URL and i don't want them. They should be discarded.
I need to use the PageID parameter because the ID tells me to which new page I should redirect.
Can anybody help me?
thanks
anybody?
Got it.
is working on a reply...