Copied to clipboard

Flag this post as spam?

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


  • Fuji Kusaka 2203 posts 4220 karma points
    Oct 29, 2012 @ 13:12
    Fuji Kusaka
    0

    Hiding Folder Name from URL

    Hi Everyone,

    Working on a multilingual Website with 3 different Navigation is a bite focusing at the moment since I need to Hide part of the Url from one Navigation Folder.

    To be more precise here is how my content Structure looks like

    *Content 
    -www
    .. En
    ... Content 1
    ... Content 2
    ... Content 3
    .... Folder (Navigation 2)
    ------ Section 1
    -------- Item 1
    -------- Item 2
    -------- Item 3

    Am actually using umbracoUrlAlias property under v4.7.2 but this doesnt work. So bascially i would like to get the url to display like this

    http://www.mywebsite.com/en/item1.aspx instead of 
    http://www.mywebsite.com/en/folder/section1/item1.aspx

    Is there a way of achieving something like that? 

    //fuji

  • Trevor Loader 199 posts 256 karma points
    Oct 30, 2012 @ 22:20
    Trevor Loader
    0

    Have you thought about using urlrewriting?

    Ie, edit /config/UrlRewriting.config and add something like...

    <add name="nav2" virtualUrl="^~/en/folder/section1/(.+?)" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/en/$+" ignoreCase="true" />

    Then any url like /en/folder/section1/item3.aspx?id=abc would resolve to /en/item3.aspx?id=abc

  • Fuji Kusaka 2203 posts 4220 karma points
    Oct 31, 2012 @ 05:18
    Fuji Kusaka
    0

    Havent thought of that but will surely give this a try and let you know if it works.

    Then since this is a multilingual website i will have to add the same exception for the other languages.

    //fuji

  • Fuji Kusaka 2203 posts 4220 karma points
    Nov 14, 2012 @ 14:25
    Fuji Kusaka
    0

    @trevor 

    Nothing is working for me i tried 

    <add name="hideFolder"   virtualUrl="^~/en/sector/(.+?)" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/en/$+" ignoreCase="true" />    

    and

    <add name="hideFolder"   virtualUrl="^~/en/sector/(.*)" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/en/$+" ignoreCase="true" />   

     

    //fuji

  • Fuji Kusaka 2203 posts 4220 karma points
    Nov 23, 2012 @ 15:43
    Fuji Kusaka
    0

    Anyone has any suggestion to this? Since google is referencing some of my folder name such as www.myside.com/en/foldername.aspx i need to make make this that this content folder is being redirected to another page where i actually have some items fields to display.

    Any suggestion on how to solve this ?

    //Fuji

  • 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