Copied to clipboard

Flag this post as spam?

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


  • Kalle Ekstrand 181 posts 259 karma points c-trib
    Aug 25, 2010 @ 14:55
    Kalle Ekstrand
    0

    urlRewrite to only write out one single "-" in url?

    Hello,

    Is it possible to have urlRewrite to only write out one - in the url even if there are more?

    Since an blankspace in combination with & will transform into --

    for example:

    http://domain.se/this--test.aspx

    Should instead be

    http://domain.se/this-test.aspx

    //kalle

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Aug 25, 2010 @ 15:25
    Stefan Kip
    0

    I don't think it's possible, unless you go edit the Umbraco source, which normally isn't an option.

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Aug 25, 2010 @ 15:31
    Morten Bock
    0

    Do you mean to get Umbraco to generate that url, or to rewrite it using urlRewriting.net?

     

  • Kalle Ekstrand 181 posts 259 karma points c-trib
    Aug 25, 2010 @ 15:33
    Kalle Ekstrand
    0

    Either way. If there is a way for Umbraco to generate it would be great.

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Aug 25, 2010 @ 16:32
    Morten Bock
    2

    Try in the /config/umbracoSettings.config adding this at the end of the urlReplacing element:

    <char org="--">-</char>

    It's important that it is the last of the elements.

  • Kalle Ekstrand 181 posts 259 karma points c-trib
    Sep 02, 2010 @ 10:05
    Kalle Ekstrand
    0

    Thanks Morten, works just fine!

  • 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