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.
The Domain 301 Redirect module allows sites to 301 redirect to a domain that is marked as the main domain. This means you can have all subdomains and other domains pointing to the site 301 redirect to a domain that you choose as the main domain. This provides great SEO benefit.
Examples:
With the main domain set as http://www.example.com the following redirections
would take place:
- http://example.com/user/1 -> http://www.example.com/user/1
- http://mydomain.com/content/2 -> http://www.example.com/content/2
- http://www.mydomain.com/somepage -> http://www.example.com/somepage
As you can see from the examples, the path remains in tact but the host portion
of the URL changes.
Project information
- Maintenance fixes only
Considered feature-complete by its maintainers. - Module categories: Site Search, Developer Tools
- 1,105 sites report using this module
- By timhilliard on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
2.0.3
released 30 July 2022
Works with Drupal: ^9 || ^10
✓ Recommended by the project’s maintainer.
Drupal 10 Support
Install: