I was wondering if it would be possible to have one path / url alias. But route it to different nodes / content, based on the current viewing domain.

For example the alias could be:
/foo

Than we would route it to:
domain.com/foo -> node/2
domain2.com/foo -> node/5

If this is not possible in core, maybe someone could suggest a alternative way.

I have looked at: https://www.drupal.org/project/domain_path but that seems to be the oter way around.

Comments

Michsk’s picture

i'm starting to think this module is not really fit for what i need.

drupal a11y’s picture

The solution should have been this module, unfortunately "never" released: https://www.drupal.org/project/domain_url_alias

drupal a11y’s picture

Your request is also unfortunately older and still not solved: https://www.drupal.org/node/1923474

drupal a11y’s picture

The only trick I currently can think about that you try to use multiple languages for that.
And then display one language on one domain.

drupal a11y’s picture

I made a feature request for this: https://www.drupal.org/node/2447567

Michsk’s picture

I am working on domain_url_alias at this moment. Will put a zip in that issue queue when done.