Copied to clipboard

Flag this post as spam?

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


  • Garret 68 posts 308 karma points
    Oct 04, 2014 @ 16:58
    Garret
    0

    Trouble setting up multisite

    Hi all,

    Probably overlooking something stupid. But I've create 2 sites, with domain1.com and domain2.com. But when i type domain2.com in my addressbar i keep getting domain1.com. I know this because all the link in the site start with domain1.com. 

    Node1, Culture and hostname settings has domain1.com
    Node2, Culture and hostname settings has domain2.com

    I've done this before but not in in version 7. (7.1.6 to be exact)

    Maybe one of you guys has a clue where to look at?

    ---
    Garret

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Oct 04, 2014 @ 17:08
    Dennis Aaen
    0

    Hi Garret,

    When you working with multilingual site in Umbraco then remember to set the useDomainPrefixes to true in the UmbracoSettings.config, in the config folder in your file system.

    What is does is:

    useDomainPrefixes: set if umbraco should include the page's domain name in the url. so generated urls will become www.domain.com/pagen/page2.aspx instead of just /pagen/page2.aspx. Usually only used when running multiple sites in the same umbraco installation.

    Maybe you need to recycle site and application pool in the IIS, before it takes place.

    Hope this helps,

    /Dennis

  • Garret 68 posts 308 karma points
    Oct 04, 2014 @ 17:15
    Garret
    0

    Hi Dennis,

    Tnx for taking the time to help me. Already did that and did a couple of site restarts, still no luck

      <requestHandler>
       <!-- this will ensure that urls are unique when running with multiple root nodes -->
       <useDomainPrefixes>true</useDomainPrefixes>
       <!-- this will add a trailing slash (/) to urls when in directory url mode -->
       <addTrailingSlash>true</addTrailingSlash>  
      </requestHandler>

    I use dictionary items in my template and they're still showing the dutch version instead of the english version, Which to me is an indication it's still processing node 1 instead of node .

    Will continue to find out what i forgot or did wrong. Any other suggestions?

     

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Oct 04, 2014 @ 17:29
    Dennis Aaen
    0

    Hi Garret,

    And you have added the site in the bindings in the IIS, and set the domain2.com site in your host file too. I assume here that it´s two different domains, and not just domain.com/en and domain.com/nl

    This is what I can think of right now that should be done.

    Hope this helps,

    /Dennis

  • Garret 68 posts 308 karma points
    Oct 04, 2014 @ 17:45
    Garret
    0

    Hi Dennis,

    Yep, did that, if not I would nog get to site at all.

    So far the stuff I checked
    -useDomainPrefixes 
    -Node1 and node2 have correct cultures and hostnames
    -Node1 and node2 point to the homepage (umbracoInternalRedirect)
    -Caching in Partials, maybe they somehow cache crosssite 

    Strange thing is: If I change the sortorder of the two nodes I suddenly get Node2. That might be a clue

    --
    Garret 

     

Please Sign in or register to post replies

Write your reply to:

Draft