Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I use Domain Access because my two sites have different domains and frontpages but share a lot of content. Everything seems to be working fine but except when I google search for the secondary domain the search result is the right domain but has the primary domain's title and it links to the primary domain as well.
Is anyone aware of a way to fix this?
If what I mean is not clear search for praguesociety.org and click on the first result versus accessing the domain directly.
Comments
Comment #1
agentrickardTry Domain XMLSitemap to teach Google how to index the site.
Comment #2
01005 CreditAttribution: 01005 commentedThat was the first thing I tried. After your comment I tried some more but I don't know what I would change. Is it really about Google indexing the page wrong or is it about the page getting the wrong idea when the request comes via Google? The URL in the address bar remains the right one.
Comment #3
agentrickardThat may be Google doing some de-duplication. The only think I can think to check on the output side is the rel "canonical" tag in the page header, which might point to the primary domain.
Comment #4
01005 CreditAttribution: 01005 commentedI still haven't solved this and I'm becoming increasingly confused. It seems to not (just) be about search engines.
Just now I've been working on a page that is only available on Domain A and not on Domain B. First time I try it's all fine. 5 minutes later I fix a typo and I enter the same URL and it takes me to Domain B instead (where the page is not accessible). Then if I change the browser it works again.
Comment #5
agentrickardI enter the same URL and it takes me to Domain B instead
This module does not issue redirects for normal content, so perhaps something else is interfering.