Copied to clipboard

Flag this post as spam?

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


  • David Hyslop 27 posts 181 karma points
    Feb 17, 2016 @ 16:23
    David Hyslop
    0

    Friendlier URL's

    Hi

    I'm looking for some advise about making URL's shorter/friendlier.

    Currently we have a page for example.

    mywebsite.com/section/about

    What I'd like to do is shorten the URL to mywebsite.com/about

    I've tried using umbracoUrlName but all this does is change the end of the URL. I.e. mywebsite.com/section/umbracoUrlName

    Any advise would be great.

    Thanks.

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Feb 17, 2016 @ 16:39
    Dave Woestenborghs
    1

    Hi David,

    You can try using umbracoUrlAlias : https://our.umbraco.org/wiki/reference/umbraco-best-practices/umbracourlalias/

    But I don't know if this is what you get back when you try to retreive the url of the item.

    You can always write a UrlProvider and a content finder if you want to change the url that umbraco generates.

    Here is a blog post explaining the concept : http://24days.in/umbraco/2014/urlprovider-and-contentfinder/

    And here you can find the documentation : https://our.umbraco.org/documentation/Reference/Routing/Request-Pipeline/outbound-pipeline https://our.umbraco.org/documentation/Reference/Routing/Request-Pipeline/IContentFinder

  • Carlos Mosqueda 240 posts 431 karma points
    Feb 17, 2016 @ 16:40
    Carlos Mosqueda
    0

    Hi David,

    Could you put your "About" page in your root instead of under a /section/?

    So your tree would be:

    mywebsite.com (Your root node)

    • about

    Instead of mywebsite.com (Your root node)

    • Section
        • about

    Is the 'section' important to your tree set up? Does the "about" have to reside in the /section/?

  • David Hyslop 27 posts 181 karma points
    Feb 18, 2016 @ 16:40
    David Hyslop
    1

    Hi

    Thanks for the responses, I think I may have found a solution.

    Just for clarity my definition of a friendly URL is www.sitename.com/friendlyurl

    The problem I have is we are migrating to Umbraco from another CMS and we have about 100 friendly URL's that need to work once the site is transferred over. Lots of these URL's are printed in literature so they just need to bounce the user onto the relevant page within our site.

    Whilst looking for a package to do redirects I've found this. https://our.umbraco.org/projects/backoffice-extensions/simple-301/

    I'm hoping I can use this to create the Friendly URL's, a little testing it seems to work fine. No idea yet if it will impact SEO but will test further.

    Friendly URL

Please Sign in or register to post replies

Write your reply to:

Draft