Copied to clipboard

Flag this post as spam?

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


  • Claushingebjerg 939 posts 2574 karma points
    Jun 24, 2011 @ 09:22
    Claushingebjerg
    0

    301 redirecting urls with : in the url

    I've set up at site in umbraco and need to redirect pages from the old site to the new pages on the umbraco site.

    the problem is some of the old php page has colons in the url, like:

    http://mysite.com/articles/view/65/menu:profile

     

    i cant redirect it using urlrewriting as i get the error

    Server Error in '/' Application.
    A potentially dangerous Request.Path value was detected from the client (:).

     

    Any ideas?

  • Anders Burla 2560 posts 8256 karma points
    Jun 24, 2011 @ 09:31
    Anders Burla
    0

    Hi Claus

    We use ISAPI rewrite at Tea Solutions to do the url rewriting - maybe that could do the trick for you. I think they have a free version you can try

    http://www.helicontech.com/isapi_rewrite/

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Jun 24, 2011 @ 09:56
    Stefan Kip
    0

    Or try the IIS UrlRewriting plugin; http://www.iis.net/download/urlrewrite

    Maybe this plugin will be further up the request pipeline than the security check so you can avoid it...

  • Lesley 284 posts 143 karma points
    Jun 24, 2011 @ 18:51
    Lesley
    1

    Check this out http://msdn.microsoft.com/en-us/library/system.web.configuration.httpruntimesection.requestpathinvalidcharacters.aspx

    You can put this in your web.config:

     

    <system.web>
            <httpRuntime requestValidationMode="2.0" requestPathInvalidCharacters="<,>,*,%,&,\\" />
    In other words, removing the colon from the default set of validation characters.
    Lesley

     

  • 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