Copied to clipboard

Flag this post as spam?

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


  • Bo Damgaard Mortensen 719 posts 1207 karma points
    Aug 31, 2012 @ 18:36
    Bo Damgaard Mortensen
    0

    Multilingual site question

    Hi all,

    I have followed Sebastiaans approach of setting up a multilingual site in Umbraco, where I have a site-node for each of the sites. Link to his blogpost: http://cultiv.nl/blog/2010/12/19/tip-of-the-week-the-ultimate-site-structure-setup/

    My structure is as follows:

    - da (danish site)
          - Forside
          - Om os
          - Produkter

    - en (english site)
          - Frontpage
          - Om os
          - Products

    I have set hostnames up in Umbraco for the "da" and the "en" node to: mysite.dk and mysite.com and I have also asked the server admin to set up DNS (or whatever they have to set up, I don't know a thing about this, to be honest) to point to the server with Umbraco installed. Also, on the "da" and "en" nodes, I have an umbracoRedirect property which is a contentpicker to redirect to the "Forside" and "Frontpage" nodes.

    While the danish site works, I keep getting a 404 not found on the english site :-( And when I click on the actual link for the document, i.e.: /en/frontpage.aspx, it also displays a 404 not found.

    So, what exactly have I missed here? :-)

    Any help and hint is greatly appreciated!

    Thanks in advance.

    All the best,

    Bo

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Aug 31, 2012 @ 18:59
    Morten Bock
    1

    Quick diagnostics here :-)

    Which of these urls give you a 404?

    mysite.dk/
    mysite.dk/umbraco/
    mysite.dk/da/forside.aspx
    mysite.dk/en/frontpage.aspx
    mysite.com/
    mysite.com/umbraco/
    mysite.com/en/frontpage.aspx
    mysite.com/da/forside.aspx

    Also, if you run
    ping mysite.dk
    pingmysite.com
    in a console, do they resolve to the same IP address? 

  • Stephen 767 posts 2273 karma points c-trib
    Aug 31, 2012 @ 19:14
    Stephen
    1

    Common things to check:

    Check that mysite.dk and mysite.com resolve to the same IP address

    Check that IIS is properly configured to host mysite.dk and mysite.com on the same web site

    Check that "mysite.dk" is properly configured as hostname on the DA node

    Check that "mysite.com" is properly configured as hostname on the EN node

    Stephan

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Aug 31, 2012 @ 23:58
    Jan Skovgaard
    0

    Also check that useDomainPrefix is set to true in umbracoSettings.config - I don't saw it mentioned in Sebastiaans post while I skimmed it. It's probably not relatedto the 404 issue but it's important to ensure you can't access content from site.dk on site.com and vice verca in regards of SEO and duplicate content.

    /Jan

  • Bo Damgaard Mortensen 719 posts 1207 karma points
    Sep 03, 2012 @ 13:49
    Bo Damgaard Mortensen
    0

    Thanks a lot for your answers guys. I told the admin to point the .endomain back to their old site, so they actually had a site over the weekend ;-) Haven't got a chance to hook up with the admin yet though.

    However, I tried to remove all hostnames from the "en" node and tried to access it by simply typing the url: www.mysite.dk/en/ and www.mysite.dk/en/frontpage/ but the strange thing here is, that this gives me an IIS 404 error.. ?

    @Jan: I turned on useDomainPrefix when I started the project, but thanks for the reminder! :-D

    Also, I remove the umbracoRedirect properties from the "da" and "en" nodes and create a new one with the alias "umbracoInternalRedirectId", as Sebastiaan mentions in his blog. This works for the danish site, but even though no hostnames, no DNS and no CNAMEs are set up for the english site, it gives me a 404 error when trying to access it, like I mentioned above.

    Soooo.. what could cause this problem?

    Thanks in advance.

    - Bo

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Sep 03, 2012 @ 14:33
    Morten Bock
    0

    Depending on the server setup, the IIS might overrule the umbraco 404.

    Are you getting the same IIS 404 from these two urls?:
    mysite.dk/da/somerandomnonexistingpage.aspx
    mysite.dk/en/forntpage.aspx 

    If you want to test the site without setting up the DNS, then you can just add the hostnames to your local hosts file. That way you can test with the real domains, without interrupting service on their main site. Ping me on twitter/msn/skype if you have no idea what I'm on about :)

  • Bo Damgaard Mortensen 719 posts 1207 karma points
    Sep 04, 2012 @ 13:54
    Bo Damgaard Mortensen
    0

    Had a chat with Morten on Messenger. Tried to set up the hostnames locally on my PC, but it turned out that the umbracoInternalRedirectId was the way to go and not the regular 302 umbracoRedirect property.

    So if anyone is having the same problem, the solution was to simply:

    - Set up appropriate domains in the "manage hostnames" menu in Umbraco, on the "en" and "da" nodes.
    - Have a property with a contentpicker datatype, with the alias "umbracoInternalRedirectId" on the "en" and "da" nodes. This contentpicker should point to the "forside" and "frontpage" nodes. 

Please Sign in or register to post replies

Write your reply to:

Draft