Copied to clipboard

Flag this post as spam?

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


  • Simone Chiaretta 135 posts 542 karma points c-trib
    May 20, 2010 @ 11:18
    Simone Chiaretta
    0

    How does umbracoUrlAlias is supposed to work?

    I have created a multilingual site (for sake of simplicity I add just one node per site):

    Content
     - it
        -  Iscrizioni
     - en
        -  Register

    I'd like that the Iscrizioni node is retrieved with the following urls:

    /it/Iscrizioni
    /Iscrizioni
    /it/Register

    The first is the correct one for SEO, and the one that will be used as link in the site
    The second is to preserve old urls of when the site was "mono-lingual"
    The third to allow url hackabolity (i.e. I go to /en/Register, I want to try if there an Italian version, I just change en to it)

    I added in the DocumentType a textstring property with the alias umbracoUrlAlias, and I set it to Iscrizioni,en/Register, but when I try to go to /Iscrizioni.aspx and to the /en/Register.aspx I get the 404 page.

    Any idea of what I am doing wrong?

     

  • Simone Chiaretta 135 posts 542 karma points c-trib
    May 20, 2010 @ 11:21
    Simone Chiaretta
    0

    Sorry, I meant, I set it to "iscrizioni,it/register" and doesn't work when I go to /Iscrizioni.aspx and to the /it/Register.aspx

    Damn, no editing feature in this forum yet? :)

  • Simone Chiaretta 135 posts 542 karma points c-trib
    May 20, 2010 @ 11:26
    Simone Chiaretta
    2

    Nevermind... fixed it :)

  • Lee Kelleher 4026 posts 15837 karma points MVP 13x admin c-trib
    May 20, 2010 @ 11:29
    Lee Kelleher
    1

    Hi Simone,

    I found that umbracoUrlAlias only works on lowercase.  Try going to "/it/register.aspx", see if that works?  Not sure why "/iscrizioni.aspx" doesn't work, as far as I can tell you have entered it correctly.

    Alternatively, if you are doing this for SEO purposes, I'd suggest taking a look at the 301 URL Tracker package, as that sends out the appropriate redirect headers.

    http://our.umbraco.org/projects/301-url-tracker

    Cheers, Lee.

     

  • Simone Chiaretta 135 posts 542 karma points c-trib
    May 20, 2010 @ 11:32
    Simone Chiaretta
    0

    Thank you, I'll have a look at it

  • 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