Copied to clipboard

Flag this post as spam?

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


  • Anthony Candaele 1197 posts 2049 karma points
    May 19, 2012 @ 15:35
    Anthony Candaele
    0

    problem with multilingual site

    Hi, 

    Currently I'm struggling with a multilingual website (Dutch and French). My content tree looks like this:

    for local development I have configured the hostname settings for the 'nl' node like this:

    however, if I try to go to the home node in website I get a 404-page. What am I doing wrong?

    Thanks for your help,

    Anthony

  • Anthony Candaele 1197 posts 2049 karma points
    May 19, 2012 @ 17:12
    Anthony Candaele
    0

    This is kind of driving me crazy.

    Tried to edit the hosts.htc file but no success:

    127.0.0.1       localhost
    127.0.0.1localhost.nl

    Is it possible to have multiple domains on a local machine anyway?

    thanks for your advice,

    Anthony

  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    May 19, 2012 @ 19:25
    Jeroen Breuer
    1

    You could simply try /nl for a hostname instead of localhost/nl. It might also be related to this: http://our.umbraco.org/forum/getting-started/installing-umbraco/28790-Multiple-multilingual-website-hostname-problem.

    Jeroen

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    May 19, 2012 @ 19:25
    Jan Skovgaard
    1

    Hi Anthony

    Is there any reason why you do localhost/nl instead of localhost.nl?

    /Jan

  • Anthony Candaele 1197 posts 2049 karma points
    May 19, 2012 @ 20:05
    Anthony Candaele
    0

    @ jeroen, jan

    I solved the issue like this:

    set my hosts file like this:

    127.0.0.1 nl.local
    127.0.0.1 fr.local

    I also configured the host headers in iis and I set the host names on the 'nl' and 'fr' nodes respectively to:

    nl.local
    language (Dutch Belgium)

    fr.local
    language (French Belgium)

    Everything works fine.

    The only thing I wonder about, if it is possible to have one domainname

    eg. www.vespasympa.be/nl/home.aspx

    instead of a subdomain like

    www.nl.vespasympa.be/home.aspx

     greetings,

    Anthony

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    May 22, 2012 @ 22:18
    Jan Skovgaard
    1

    Hi Anthony

    Hmm, I'm no expert in this area but I think you should be able to achieve it by having a root page, which is www.vespasympa.be and then you can configure the hostnames for nl and be like www.vespasymapa.be/nl and www.vespasymapa.be/fr...

    so your content structure is setup like this

    site
       - Website (NL)
         - page 1
         - page 2
         - etc. 
       - Website (FR)
         - page 1
         - page 2
         - etc.  

    Hope this makes sense and that someone will correct me if I'm wrong :)

    /Jan

  • Anthony Candaele 1197 posts 2049 karma points
    May 23, 2012 @ 11:16
    Anthony Candaele
    0

    Hi Jan,

    Thanks for the advice, I will try it out and let you know if it works.

    greetings,

    Anthony

  • Anthony Candaele 1197 posts 2049 karma points
    May 24, 2012 @ 12:32
    Anthony Candaele
    0

    Hi Jan,

    Maybe your not an expert in this matter but your advice worked well!

    I configured the content tree as you suggested:

     

    the managed hostname settings for the language nodes (nl, fr) are:

    domain: localhost/nl
    language: Dutch (Belgium)

    and

    domain: localhost/fr
    language: French (Belgium) 

    Also the url rewrite in the UrlRewriting.config file, as suggested by Sebastiaan Janssens in the blogpost "the ultimate site structure setup" still seems to work:

            virtualUrl= "^~/home$"

            rewriteUrlParameter="ExcludeFromClientQueryString"

            destinationUrl="~/"

            ignoreCase="true"

            redirect="Application"

            redirectMode="Permanent" />

     

    I wonder from an SEO perspective which is the best solution for a multilingual website. To use url's like this:

    http://www.nl.vespasympa.be/home.aspx
    http://www.fr.vespasympa.be/accueil.aspx ;

    or to have url's like this:

    http://www.vespasympa.be/nl/home.aspx
    http://www.vespasympa.be/fr/accueil.aspx

     Thanks for the help and advice,

    Anthony

  • 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