Hello,
I have some drupal powered websites that work without domain access. On these sites I use the module global redirect to forward urls in the form www.website.com/node/[nid] automatically to their correct paths (for example www.website.com/content/this-is-my-first-site).
I am looking for a similar solution for my websites using domain access. Global redirect does not seem to work with them: I can use the urls www.website.com/node/[nid] AND www.website.com/path - no forwarding is done.
I checked some other websites that use domain access, and on all of them, I can use both, the /node/[nid] and the path.
Is there a method to automatically forward node/[nid] - urls to their correct path - urls using domain access?
By the way, this is important because search engines should not find the same content on several urls (duplicate content).
Comments
Comment #1
agentrickardPlease search the queue. Someone submitted a module like this once.
Comment #2
vlooivlerke commentedI have searched all issue for hours and found no solution to this problem but it is now 5 years later.
Here is my problem
I have a default domain that show all content called domain1.com and the frontpage is set to /node
Now I make /node/2 domain2.com frontpage in domain settings.
When I go to the url address domain2.com in the browser, I get redirected to domain2.com/node/2
I don't want to be redirected to domain2.com/node/2 I want the user to stay on domain2.com
If I turn global redirect on and pathauto I will get the following result
the url address www.domain2.com wil redirect to www.domain2.com/domain-2
Please try it out visit this url: http://mobbsgqirana.co.za
notice the url redirect to http://mobbsgqirana.co.za/mobbs-gqirana
Must I?
Turn of global redirect
Enable domain alias module and add the alias of www.domain2.com
Install some other module
Thanks
Comment #3
agentrickardI think you may need to disable Global Redirect.
Comment #4
vlooivlerke commentedYou are right. When I disable global redirect the url's work.
But now my website expose the node/* url's and does not redirect to the correct path if you visit the node/* url.
This is no good for search engines.
@agentrickard, I have read loads of issues pertaining global redirect and domain access where you normally had the last say.
This issue never existed in D6. I actually dont know what to call this problem, could you please change the title to something that explains this problem. I am sure there must be other domain access users that have this problem. here is a few other issues but they did not help.
FYI, Domain Access Source and Global Redirect conflict
Conflict with Domain Access as domain_url_outbound_alter() returns alias
I have turned off global redirect and if you visit the previous test url you will now have the desired result.
Thanks
Comment #5
bluegeek9 commentedDrupal 7 in End of Life and no longer supported. We encourage you to upgrade to a supported version of Drupal. For more information, see https://www.drupal.org/upgrade.