Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


This forum does not allow new topics to be created, please use the v2 forum from now on.

  • Denford 130 posts 311 karma points
    Nov 06, 2012 @ 14:36
    Denford
    0

    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

  • Denford 130 posts 311 karma points
    Nov 07, 2012 @ 13:53
    Denford
    0

    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.

     

  • Hari 6 posts 26 karma points
    Jan 11, 2013 @ 13:02
    Hari
    0

    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.

     


  • Denford 130 posts 311 karma points
    Jan 14, 2013 @ 15:09
    Denford
    0

    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.

  • 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.

Please Sign in or register to post replies