Undesired linking between sites.

Events happening in the community are now at Drupal community events on www.drupal.org.
manogolf's picture

Since creating a multisite installation I've noticed the sites are linking to one another. Server stats are showing links that I'd rather not see. The sites are unrelated.

Is this a typical side effect? What is usually done to block linking between sites?

Thanks,

Jerry

Comments

Can you give some examples of

criznach's picture

Can you give some examples of what's linking? Are you sharing any database tables between the sites?

Each site has its own

manogolf's picture

Each site has its own database. Every node of the sites in /sites/mydomains.com is linking to the base site at /var/www/html. And therein is likely the problem.

I have a single install of the codebase for a solo site at /var/www/html that has been around for years. Desiring to ease the update headaches of several sites a multisite install is the ideal solution. So I quickly created domain.com folders at /sites for the domains and went about my business. I am guessing because the structure is not /sites/domains.com for ALL sites (a codebase install at /var/www/, or wherever, not associated with a domain) I've created the linking issue. Are you able to follow that explanation? I seem to be experiencing expressive difficulties. Too much food and drink during our Thanksgiving celebration.

I'm thinking perhaps a disallow: domain.com in the robots.txt file might be the easiest solution. Do you think that will do the trick?

Are the domains separate

btopro's picture

Are the domains separate completely? Meaning is it like site1.com and site2.com or is it more like site.com and site.com/anothersite/ . Also check that you have the names correct to match the domain, it sounds like 1 might be reverting back to the default db connection which could cause that. Is the content correct in each site, you might need to post a link or screenshot or something if there are links on one site pointing over to another. Also check that you haven't set the url path in the settings.php file cause if that's wrong it could also cause this.

This definitely is NOT a side effect of multisites as I use them for everything I do and that has never happened

I'm not sure I and others

Garrett Albright's picture

I'm not sure I and others really understand the problem yet - solid examples would be appreciated - but it vaguely sounds like the problem may be links in your site content which have "broken" (or are at least pointing to an incorrect place) due to your site's base directory changing. My Pathologic module may be of use to you if that's the case.

Multisite

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: