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.
If I understand correctly, Domain Path means that for node/1 I can have the path alias "foo" on site1.com and "bar" on site2.com.
Is it possible to turn this around so that node/1 has the path alias "foo" on site1.com but node/2 has the alias "foo" on site2.com? I'd only want to do this for a small number of paths, so going the Domain Prefix route and having entirely separate tables of aliases seems problematic.
Comments
Comment #1
agentrickardYou can also do the reverse, I believe , though it can be hard to manage, since there are no reverse lookups. So you have to keep track of these nodes yourself.
In your scenario, do the following:
You'll want to experiment with how you set the default path for these nodes. Perhaps a better approach and explanation is:
The real trick here is what path to use in cases where you don't overwrite it. Now, if the node isn't visible on domains other than 1 and 2, it doesn't matter.
Comment #2
apemantus CreditAttribution: apemantus commentedOK cool: I'll play around a bit. In general, if the path isn't overriden, it should use what PathAuto sets, so in the example above, Site 3 would use the default aliases of bar and baz. Assuming that Path/Auto can handle the bulk of aliases and Domain Path the small number of overrides this should be perfect.
Thanks for the speedy reply.
Comment #3
agentrickardYes, this statement is correct: In general, if the path isn't overriden, it should use what PathAuto sets
Comment #4
Ron Williams CreditAttribution: Ron Williams commentedIs there support for something like domain pathauto? It would be very helpful to set these overridden URL's automatically instead of on an individual basis.
Comment #5
agentrickardThere is not. That would be a separate feature request.
Comment #6
monotaga CreditAttribution: monotaga commentedI'd love to get this working, but trying to use the setup in #1 (beginning w/"Perhaps a better approach and explanation"), all I get is redirect loops. I'm using pathauo and have the dev version of Domain Path installed. How can I troubleshoot what's going on?
Comment #7
monotaga CreditAttribution: monotaga commentedLooking at #1325088: Firefox: "Page isn't redirecting properly" (redirect loop), I wonder if my redirect loop issues have to do with Path Redirect (which I'm using in conjuction with pathauto). I'll try with Path Redirect disabled to see if that resolves anything.
Comment #8
monotaga CreditAttribution: monotaga commentedIn my case, disabling Path Redirect doesn't make any difference; I'm still getting unresolvable redirect loops if I try to have two different nodes (on two different Domain Access domains) with the same path.
Comment #9
monotaga CreditAttribution: monotaga commentedI think upgrading globalredirect to 6.x-1.4 (from 6.x-1.2) may have solved my endless redirect loop issue.
Comment #10
agentrickardComment #11
escoles CreditAttribution: escoles commentedOn 6.x, updating to the most recent release of Global Redirect caused the redirect loops to go away.
See: http://drupal.org/node/1325088#comment-5644216