Copied to clipboard

Flag this post as spam?

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


  • Sam 47 posts 153 karma points
    Feb 25, 2014 @ 18:40
    Sam
    0

    Exclude Node from URL?

    I'm sure this has been asked before, but I didn't find the answer in the first few pages of search results (showed 933 pages of results).

    If I have a site structure like this:

    • Home
      • Categories
        • Category 1
        • Category 2
      • Brands
        • Brand 1
        • Brand 2

    Is there a way for me to exclude "Categories" from all my category urls and "Brands" from all my brand urls?

    I know I could use umbracoUrlAlias but then I'd have to fill that out for every category and brand (not ideal). I could also move Categories and Brands to the root and the umbracoHideTopLevelNodeFromPath web.config setting will hide them, but then I have to hack other things like bread crumbs. Is there any other way?

    Wish there was something like umbracoUrlHide :)

  • Dan Diplo 1554 posts 6205 karma points MVP 6x c-trib
    Feb 25, 2014 @ 21:21
    Dan Diplo
    0

    I guess you could try some URL Rewriting. Umbraco uses UrlRewriting.NET  and you can find the config file in /config/UrlRewriting.config

    You can also have rewrite rules in IIS and add them to web.config

  • 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