This project is not covered by Drupal’s security advisory policy.

This module allows the creation of an internal Drupal path that will direct the user to a unique path
based on the domain that the user is in. The link is based at the
path "/domain-redirect/12345" where "12345" is the redirect ID that is stored in the
database.

For example, let's say we have three domains on our site, and they all share the same primary links menu structure:

foo.example.com
bar.example.com
baz.example.com

Domain redirect will allow for one menu link to point to up to three different URLs, either internal or external. You can use one internal menu path "/domain-redirect/12345" and the user will be redirected to a different internal path or external URL depending on how the redirect is configured. So if the user sees the menu link at the "foo" subdomain, they might be redirected to http://www.lolcats.com/view/13285/, but at the "bar" subdomain, they would be redirected to "/node/353" and in any other subdomain, the link would redirect them to "node/2."

Redirects are administered at "Administer >> Site Building >> Domains >> Domain redirects". Make sure to assign the "administer domain redirects" permission.

Thanks go out to other drupal coders, as I copied fervently, freely and unabashedly from the Path Redirect module.

There is currently no plan to create a release for Drupal 7. A co-maintainer is desired if you want to work on this.

Domain Redirect is developed and maintained by OpenSourcery.

Drupal 8

The Drupal 8 version of this module was a complete rewrite. There is no upgrade path from Drupal 7.

The concept of this module is simple. You can configure redirects for any number of sub-domains.

For example, if your site is hosted at site.com, you can configure:

sub1.site.com to redirect to /node/4
sub2.site.com to redirect to /node/8

This requires that the sub-domains resolve to your Drupal installation.

Supporting organizations: 

Project information

  • caution Seeking co-maintainer(s)
    Maintainers are looking for help reviewing issues.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • chart icon132 sites report using this module
  • Created by jessehs on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases