Copied to clipboard

Flag this post as spam?

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


  • Bora B 32 posts 124 karma points
    Oct 05, 2016 @ 21:11
    Bora B
    0

    Using Umbraco with different URL structure than the content tree structure

    Hi,

    I have a content tree structure like this:

    http://www..com/en/a/b-b/c-c-c/content-page/ http://www..com/en/a/b-b/c-c-c/content-page-2/

    Is it possible to use the same tree structure but change the URL for SEO like below?

    http://www..com/en/publications/content-page/ http://www..com/en/publications/content-page-2/

    Thanks, Bora

  • Dallas 133 posts 405 karma points
    Oct 06, 2016 @ 03:20
    Dallas
    0

    Hi Bora

    To use a different url you can add a property named umbracoUrlAlias to the doctype.

    https://our.umbraco.org/wiki/reference/umbraco-best-practices/umbracourlalias/

    This lets you add additional urls that the page will respond to. You would need to add your seo url to each document.

    If there is a general rule to how the default url and your seo url are related you could use a custom ContentFinder. A custom ContentFinder lets you add your own logic to the Umbraco request pipeline and you can use it to route the seo url requests back to the original document.

    https://our.umbraco.org/documentation/reference/routing/request-pipeline/icontentfinder

    This forum post has a more detailed response: https://our.umbraco.org/forum/using-umbraco-and-getting-started/78856-difference-between-custom-routes-and-content-finder

    If you use the ContentFinder you can also write a custom UrlProvider that will generate the seo urls (overriding the default url)

    Dallas

  • 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