redirect Url's which contain a combination of special characters i.e. :-
Hi guys,
i am using the package to redirect old aspx website pages to umbraco site and have got the package working fine except for a couple of urls that have ":-" in them. For what ever reason the old site had a numbder of urls with :- in them e.g. /sometext/sometextagain/word:-anothercombinationofwords .
At least i can get my custom error page displaying instead of the iis error page. Also tried editing the url rewritting config file with a wild in it e.g. "^~/sometext/(.*)" and tried it in the 301 regex values and still no luck which must mean that am even hitting these settings but i think i can live with my custom error page for now.
i sort of got round that by using the RegEx redirects with a wild card on the end intsead of the url redirect, so for yours it will be something like \/Menu/Aktuelt/Nyheder/(.*) and that should pick up all the ones with that starting url.
redirect Url's which contain a combination of special characters i.e. :-
Hi guys,
i am using the package to redirect old aspx website pages to umbraco site and have got the package working fine except for a couple of urls that have ":-" in them. For what ever reason the old site had a numbder of urls with :- in them e.g. /sometext/sometextagain/word:-anothercombinationofwords .
unfortunately this character(s) appear randomly i.e. could be /oneword/anotherword:-somewords/somewords as well as above. Ideally i would want a solution that can look for any/a list of special characters and replace them with something else e.g. a letter or empty space then be able to redirect the result to another page. i have tried the solutions on http://our.umbraco.org/forum/using/ui-questions/21570-301-redirecting-urls-with-in-the-url and http://our.umbraco.org/projects/developer-tools/301-url-tracker/bug-reports/33945-Fails-to-redirect-paths-with-a-%27%27-in-the-path with no success.
the site is an umbraco 4.7.2 using iis6.
Thanks in advance
Denford
Sort of got a bit somewhere with these managed to stop the 400 bad request error that the pages were bringing up by adding:
<httpErrors errorMode="Custom">
<error statusCode="400" subStatusCode="-1" path="_path" responseMode="Redirect" />
</httpErrors>
At least i can get my custom error page displaying instead of the iis error page. Also tried editing the url rewritting config file with a wild in it e.g. "^~/sometext/(.*)" and tried it in the 301 regex values and still no luck which must mean that am even hitting these settings but i think i can live with my custom error page for now.
Having the same issue with urls with charaters such as +. _ etc for eg:
Menu/Aktuelt/Nyheder/Ghettoer_i_mediernes_sgelys and /dk/Menu/Kilder/Digitale+og+analoge+kilder,
However urls such as /dk/Menu/Support/Dokumenter work fine.
i sort of got round that by using the RegEx redirects with a wild card on the end intsead of the url redirect, so for yours it will be something like \/Menu/Aktuelt/Nyheder/(.*) and that should pick up all the ones with that starting url.
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.