Copied to clipboard

Flag this post as spam?

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


  • David Peck 690 posts 1896 karma points c-trib
    Jul 21, 2016 @ 13:15
    David Peck
    0

    Remove a segment from the path or a url

    For SEO I've been told that I need to have urls for my news section like this:

    • /news
    • /news/category-of-news-1
    • /news/category-of-news-2
    • /news/article-1
    • /news/article-2
    • /news/article-3

    For the sake of clarity; category-of-news-1 & 2 are listings of news articles whereas article-1 & 2 are news articles.

    However because there are 100s of news articles, and I don't want the articles mixed in with the categories in my list view, I've created a folder under my news note called articles, so my sitemap looks like this:

    • /news
    • /news/category-of-news-1
    • /news/category-of-news-2
    • /news/articles/article-1
    • /news/articles/article-2
    • /news/articles/article-3

    So I have two questions really.

    1. What is the best way to remove the article folder from url. I can only think about writing my own url provider and content finder, but is there a package perhaps that will handle this for me?
    2. Is there a better architecture? I did think about keeping the articles directly under news and having the categories structures outside, and then changing their urls as in #1 , but either way it's equally complex. Is there something I'm missing?

    Thanks in advance!

  • Nik 1625 posts 7295 karma points MVP 7x c-trib
    Jul 21, 2016 @ 13:55
    Nik
    1

    Hi David,

    You are exactly right, there is a packaged that does this for you. Infact, I think there are two.

    The first I can find quickly for you is:

    https://our.umbraco.org/projects/website-utilities/virtualnodes/

    It's relatively easy to configure and should do what you are after.

    Nik

  • David Peck 690 posts 1896 karma points c-trib
    Jul 22, 2016 @ 08:45
    David Peck
    0

    This answers the question perfectly, thank you.

    That said, I think I'm going to take a different approach after realising that the category pages are essentially the same as one another they just need their category name injected in to the heading and meta data. So I'll put all the articles under the news section, where their URLs will be accurate, and I'll then just create an IContentFinder to picked the news home when a matching url like /news/category-1 is requested.

  • 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