Copied to clipboard

Flag this post as spam?

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


  • Ivan 165 posts 543 karma points
    Sep 08, 2012 @ 09:33
    Ivan
    0

    Does it work for different domain names?

    Hi guys.

    I can't get it work for different domains.

    The website is as follows:

    English:

    Danish:

    When user togles language on about-us.aspx page, the system redirects him to http://domain.com/om-us.aspx, which is wrong. It should be http://domain.dk/om-os.aspx instead.
    Any ideas?

  • Yannick Smits 321 posts 718 karma points
    Sep 08, 2012 @ 12:30
    Yannick Smits
    0

    think you have to change a setting in umbraco.config: useDomainPrefixes = true fttomh.

  • Drew 165 posts 340 karma points
    Sep 08, 2012 @ 12:49
    Drew
    0

    You'll also need to set the "hostnames" value on each site.

    So when you've created each site in your Umbraco installation, and you've got two "Home" nodes, right click each one and select "Hostnames" - then follow the instructions to assign a domain to that site.

    (Also, obviously don't forget to set the sites up in IIS and set the bindings with the correct domains).

     

    On a side note, how is your language-toggle functionality working?
    Surely if you're going from EN to DK, then it's just a hyperlink to the DK site version?
    (which using useDomainPrefixes should generate the correct full URL, providing you're using the DK home node to reference that page)

    Cheers,
    Drew 

  • Ivan 165 posts 543 karma points
    Sep 09, 2012 @ 22:34
    Ivan
    0

    Hi Yannick.

    The "useDomainPrefixes=false" approach works fine for me. Thanks.

Please Sign in or register to post replies

Write your reply to:

Draft