Copied to clipboard

Flag this post as spam?

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


  • Brendan Rice 372 posts 608 karma points
    Jul 10, 2013 @ 02:10
    Brendan Rice
    0

    urlReplacing £ sign causes 404

    I have a client who doesn't want certain special characters to appear in their URLs, the £ sign is one of the characters.

    The best way I could see of achieving this is to ammend the config/umbracoSettings.config urlReplacing section to include the following entry:

    <char org="£">GBP</char>

    After changing this I tried to republish the entire site from the root node and it timed out. The URL (from properties) for the page in question remained as http://www.myurl.com/£10-a-go instead of http://www.myurl.com/GBP10-a-go.

    I then published the single page and the URL changed as expected (http://www.myurl.com/GBP10-a-go). When I try to navigate to that URL I get a 404 error. 

    Can anyone help with this please?

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Jul 10, 2013 @ 09:44
    Jan Skovgaard
    1

    Hi Brendan

    What version of Umbraco are you using?

    From what you describe above it should really just work but this may be a bug if recycling the app pool does not work.

    /Jan

  • Brendan Rice 372 posts 608 karma points
    Jul 10, 2013 @ 10:20
    Brendan Rice
    0

    Hi Jan,

    It is version 4.11.8.

    I tried to recycle the app pool as well but that didn't work.

    Have you got a 4.11.8 site you could reproduce the error on?

    Thanks,

    Brendan

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Jul 11, 2013 @ 00:10
    Jan Skovgaard
    1

    Hi Brendan

    If you have the time to wait I can get back to you later today probably around 1800 where I have had the time to test the scenario on some local installs.

    /Jan

  • Brendan Rice 372 posts 608 karma points
    Jul 11, 2013 @ 00:11
    Brendan Rice
    0

    Hi Jan,

    I have hit a brick wall with it so any help is really appreciated. Let me know what you find :)

    Thanks again for the help.

    Brendan

  • Jamie Pollock 172 posts 846 karma points c-trib
    Jul 11, 2013 @ 12:08
    Jamie Pollock
    0

    Hi Brendan,
    This may not solve the problem but have you tried using the HTML entity:

    &pound;

    rather than the £ sign?

    Typically you'd use the HTML entity are you're in XML/config file.

    Jamie

    EDIT: I just realised the Umbraco richtext encodes HTML entities. It's been a while since I've been on this site. D'oh!

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Jul 11, 2013 @ 13:23
    Jan Skovgaard
    0

    Ah yes! Jamie is right, you should be able to use the entity just like &amp; is being used for the & sign in the replace section. I have not come around to do any testing yet but I'm 100% certain that Jamies suggestion will do the trick - I really should have thought of that myself :)

    /Jan

  • Brendan Rice 372 posts 608 karma points
    Oct 03, 2013 @ 01:04
    Brendan Rice
    0

    I forgot all about this thread.

    Got round to trying the £ but it didn't work either.

  • 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