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.
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.
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.
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.
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)?
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.
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:
Any ideas?
Thanks,
David
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)
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.
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).
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.
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
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
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
is working on a reply...