Copied to clipboard

Flag this post as spam?

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


  • David Conlisk 432 posts 1008 karma points
    Dec 04, 2011 @ 14:40
    David Conlisk
    0

    Multiple domain issue: site A displays site B content and vice versa

    Yet another multiple domain post on the forum! I've done lots of searching but I can't find the answer to this one.

    I've set up my multiple domains (as described here: http://our.umbraco.org/wiki/how-tos/running-multiple-websites-on-one-umbraco-installation) and they work fine - to a point. My problem is this. Site A has a blog and Site B doesn't (see site structure below). However, browsing to siteB.com/blog displays the blog from siteA.The opposite also holds - browsing to siteA.com/bcontent displays the bcontent page, which it shouldn't.

    I updated umbracoSettings.config so that useDomainPrefixes is set to true. Now the blog still displays when I browse to siteB.com/blog, but it's an empty template and doesn't actually show any of the blog posts.

    My site structure is like this:

    SiteA (hostname: www.sitea.com)
    -- blog
    -- Acontent
    SiteB (hostname: www.siteb.com)
    -- Bcontent

    Any ideas?

    Thanks,

    David

  • David Conlisk 432 posts 1008 karma points
    Dec 04, 2011 @ 14:41
    David Conlisk
    0

    I should probably add that I'm using this version of Umbraco (old-skool, I know):

    umbraco v 4.0.2.1 (Assembly version: 1.0.3441.17657)

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Dec 09, 2011 @ 10:34
    Douglas Robar
    1

    Perhaps silly question, but did you use the 'manage hostnames' dialog on BOTH SiteA and SiteB nodes? Remember the rule, if you assign any you should assign all. Otherwise unassigned pages can be picked up by any site, which isn't what you want... sounds like the behaviour you're seeing though, which is why I ask.

    cheers,
    doug. 

  • David Conlisk 432 posts 1008 karma points
    Dec 09, 2011 @ 10:42
    David Conlisk
    0

    Thanks for the reply Doug. Not such a silly question, I'd neglected to set siteA's hostname because it was the default.

    However, I've updated that so now both sites (i.e. all sites) have their hostnames set. The issue still exists.

    Anything else to try?

     

    EDIT: Meant to mention that I've published (right-click, publish) both sites, and then refreshed the xml cache (republish all).

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Dec 09, 2011 @ 10:47
    Douglas Robar
    0

    Force a republish of all the nodes - right-click on the SiteA node and select 'Publish' menu and publish all children. Repeat for SiteB. This will force Umbraco to recalculate the urls for all nodes now that you've made a change to how they're determined.

    Note, this is not the same as 'republish entire site' when you right-click on the 'Content' node in the treeview. That only does a refresh of the cache; it doesn't recalculate the urls.

    cheers,
    doug. 

  • David Conlisk 432 posts 1008 karma points
    Dec 09, 2011 @ 11:07
    David Conlisk
    0

    Hi Doug,

     

    I've tried all of that - forced publish of SiteA and SiteB, then refresh the cache using 'republish entire site'. Still the same thing, you can see siteA's content from siteB's domain, and vice versa. 

    Anything else to check?

    Thanks

    David

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Dec 09, 2011 @ 11:16
    Dirk De Grave
    1

    Don't know whether it can be resolved in this version actually, but do know that v4.5.2 solves this issue. Funnily, our team ran into that issue, and changing the settings did the trick...

    Any chance you could update to that version of umbraco (well, at least do a test run on that version to actually verify it)?

     

    Cheers,

    /Dirk

  • David Conlisk 432 posts 1008 karma points
    Dec 09, 2011 @ 15:55
    David Conlisk
    0

    Thanks Doug and Dirk for your feedback. I feared that upgrading would be the way to go! I'll try that when I get a chance and post back here with the results.

    Cheers,

    David

Please Sign in or register to post replies

Write your reply to:

Draft