Copied to clipboard

Flag this post as spam?

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


  • Thomas 18 posts 39 karma points
    Mar 31, 2010 @ 21:04
    Thomas
    0

    UrlRewriting rewrite url to make it shorter?

    Hi,

    I wonder if someone could help me out with a problem ive been stuck on for some time:

    I have a fairly large site that due to content requirements nests folders, the consequent end url of the folders is undesirable however. Is there a way to use the UrlRewriting facility to remove specific levels within the folder structure?

    For example, converting:

    current url: www.mysite.com/country/global/north-america/canada/filename.aspx

    to

    desired url: www.mysite.com/canada/filename.aspx

    I have looked at the umbraco alias package & bit.ly packages but neither really do what i want.

    I have no experience with RegEx so any assistance would be greatly appreciated, i've tried editing the urlrewrite config but keep recieving errors.

    Regards,

    Tom

    - If anyone knows another way to automatically reduce the size of the urls, without changing structure I would be more than happy to hear it :)

  • Thomas 18 posts 39 karma points
    Mar 31, 2010 @ 21:07
    Thomas
    0

    The current url was:

    http://www.mysite.com

    /country

    /global

    /north-america

    /canada

    /filename.aspx

    url/5foldernames/filename.aspx

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Mar 31, 2010 @ 21:17
    Peter Dijksterhuis
    0

    You could try to add a property to your pages: umbracoUrlAlias

    More info here: http://our.umbraco.org/wiki/reference/umbraco-best-practices/umbracourlalias

    You don't need to do anything else, just fill that with the desired url-name, umbraco will pick it up.

    Does this help?

    Peter

  • Thomas 18 posts 39 karma points
    Mar 31, 2010 @ 21:22
    Thomas
    0

    Hi Peter,

    Thank you for your reply. Ive looked into the umbracourlalias & it doesnt quite provide the solution.

    - I would like a solution that provides one unique url

    - Doesnt require a change to the umbraco content structure

    - Works automatically without the user having to enter a desired url.

    Any ideas?

    Regards,

    Tom

  • Thomas 18 posts 39 karma points
    Mar 31, 2010 @ 21:31
    Thomas
    0

    Hi Peter,

    Thank you for your reply. Ive looked into the umbracourlalias & it doesnt quite provide the solution.

    - I would like a solution that provides one unique url

    - Doesnt require a change to the umbraco content structure

    - Works automatically without the user having to enter a desired url.

    Any ideas?

    Regards,

    Tom

  • Thomas 18 posts 39 karma points
    Mar 31, 2010 @ 21:38
    Thomas
    0

    Hi Peter,

    Thank you for your reply. Ive looked into the umbracourlalias & it doesnt quite provide the solution.

    - I would like a solution that provides one unique url

    - Doesnt require a change to the umbraco content structure

    - Works automatically without the user having to enter a desired url.

    Any ideas?

    Regards,

    Tom

  • 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