Copied to clipboard

Flag this post as spam?

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


  • John French 32 posts 83 karma points
    Jul 23, 2014 @ 03:17
    John French
    0

    Changing url (link to document field)

    Hi,

    I'm using umbraco 6 MVC - I've been reading about how you can override the DefaultUrlProvider and changing the Url.  I have a chinese version of the site - all the structure is in chinese but my client dosen't want chinese urls..they just want the url to be a page number e.g

    http://www.mysite.com/page344

    instead of

    http://www.mysite/買賣房屋/賣房屋

    Is this possible to do with override the DefaultUrlProvider?  I have tried this but have had no luck so far...

    Any help or suggestions would be welcome!

    Thanks!

     

     

     

  • John French 32 posts 83 karma points
    Jul 23, 2014 @ 03:18
    John French
    0

    chinese characters never got displayed in the second url...but you get the picture

  • Andy Butland 422 posts 2334 karma points MVP 4x hq c-trib
    Jul 23, 2014 @ 09:18
    Andy Butland
    0

    I remember this very example being discussed at a CodeGarden session this year (using the node IDs as URL segments).  I can't remember the exact details unfortunately but the talk is streamed here: http://stream.umbraco.org/video/9921022/core-internals-for-website-development

    Andy

  • John French 32 posts 83 karma points
    Jul 25, 2014 @ 06:07
    John French
    0

    Hi Andy,

     

    Thanks for the info..will take a look and let you know how I get on.  I have a working solution at the moment using the umbracoUrlAlias and umbracoUrlName fields and a regex redirection statement in urlrewriting.config - but its not a great solution - would much prefer a MVC routing solution...

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft