Copied to clipboard

Flag this post as spam?

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


  • Rune Grønkjær 1372 posts 3103 karma points
    Aug 23, 2010 @ 14:50
    Rune Grønkjær
    2

    Bugs in domain prefixes

    Hi,

    We are experiencing a few bugs when working with domain prefixes. It might be features, but it looks like bugs to us.

    We want a site with several languages and each language must have one or more domains attached. Our first problem is that the links under properties not are consistent. We have changed the umbracoSettings.config like this:
    <useDomainPrefixes>true</useDomainPrefixes>
    Look at these screenshots from our setup where we have two languages and domains pointing to them.


    The danish root page


    The english root page


    A danish level 2 page. Why are there a "no domain" link here? useDomainPrefixes=true should see to that only the chosen domains can be shown here. Or not?


    Same problem with a dansih level 3 page.


    English level 2 page. Everything looks just right here.

    English level 3 page. Now the problem is back. Why is there no concistency in the links?

    So what links are correct and which are not?

     

    Another related problem from the same website. I have filled out the errors section of umbracoSettings.config like so:
        <errors>
          <!-- the id of the page that should be shown if the page is not found -->
          <error404 culture="da-DK">1063</error404>
          <error404 culture="en-US">1066</error404>
          <error404>1066</error404>
        </errors>

    This just does'nt work, as I allways get the da-DK 404 page, no matter wich language Im on. If I change it like this:
        <errors>
          <!-- the id of the page that should be shown if the page is not found -->
          <error404 culture="en-US">1066</error404>
          <error404 culture="da-DK">1063</error404>
          <error404>1066</error404>
        </errors>

    The en-US 404 page is shower every time.

    I hope someone can shead some light on this.

    /Rune

  • Jonathan Cohen 40 posts 115 karma points
    Nov 09, 2010 @ 21:06
    Jonathan Cohen
    0

    A bit late but the section should look something like this to work, also a IIS restart is good for getting it going.

    <errors>
        <error404>
                <errorPage culture="sv-SE">1076</errorPage>
                <errorPage culture="da-DK">1063</errorPage>
          </error404>
    </errors>

    Hope this helps someone, i have been struggling with it for a couple of hours.

    /Jonathan

  • Manish Ramanan 8 posts 28 karma points
    Nov 28, 2012 @ 18:53
    Manish Ramanan
    0

    We are trying a similar solution with multilingual sites.

    Did you got and good working solutions ?

    after changing <useDomainPrefixes>true</useDomainPrefixes> all sub pages keep throwing 404

     

  • Stephen 767 posts 2273 karma points c-trib
    Nov 28, 2012 @ 20:58
    Stephen
    0

    @Manish: what version are you running? Also do you have issues with the urls or with the 404 handler?

  • Manish Ramanan 8 posts 28 karma points
    Nov 29, 2012 @ 05:02
    Manish Ramanan
    0

    I'm running 4.10 version , and also no issue with the 404 handler.

    The sub pages throwing 404

    A little more about the structure I followed for multilingual site , under content is like below

    content

    |--- English  (hostname {sitename}.com/en)

    -- sub pages (

     link -- {sitename}.com/en/[subpagename}

    Alternatelink --  -- {sitename}.com/en/{subpagename}

        )

    |--- French (hostname {sitename}.com/fr)

    -- sub pages (

     link -- {sitename}.com/fr/[subpagename}

    Alternatelink --  -- {sitename}.com/fr/{subpagename}

        )

     

     

  • Stephen 767 posts 2273 karma points c-trib
    Nov 29, 2012 @ 08:25
    Stephen
    0

    So if I understand correctly when you browse to sitename.com/en/subpage you get a 404 instead of a page?

  • Manish Ramanan 8 posts 28 karma points
    Nov 29, 2012 @ 12:41
    Manish Ramanan
    0

    correct.

    changing umbracoHideTopLevelNodeFromPath will be of any help in this issue?

    Also I want to run the english site at the root node , E.g  sitename.com/en/subpage  and sitename.com/subpage should server the same page.

    Is it possible ?

     

  • Stephen 767 posts 2273 karma points c-trib
    Nov 29, 2012 @ 13:46
    Stephen
    0

    As soon as you setup hostnames, umbracoHideTopLevelNodeFromPath is ignored.

    Having two urls for the same page is not really supported. Nor is it a good idea. If you want to have the english site as the default one, and the french one under /fr, here's what I'd do in 4.10:

    Content
    - English (hostname: sitename.com, lang: english)
    - - english pages...
    - - French (hostname: sitename.com/fr, lang:french)
    - - - french pages

    And in 4.11.1

    Content
    - English (hostname: sitename.com, lang: english)
    - - english pages...
    - - French (hostname: *, lang: french)
    - - - french pages

  • Manish Ramanan 8 posts 28 karma points
    Nov 29, 2012 @ 18:38
    Manish Ramanan
    0

    Thanks for your guidance. It was really helpful.

Please Sign in or register to post replies

Write your reply to:

Draft