This module helps you set a preferred URL for your website, automatically redirecting visitors to your chosen domain and enforcing HTTPS if desired. You can choose to allow both HTTP and HTTPS or require HTTPS exclusively, and decide whether to include or exclude the "www" prefix in the redirection. These settings are applied without needing to edit any code.
This module simplifies the process of setting a preferred URL and is designed for users who wish to enforce SSL and/or a specific domain without having to edit any files. It operates on a "set it and forget it" basis.
Users can choose to enable mixed mode, which permits both HTTP and HTTPS, or to require HTTPS exclusively. They may also choose to redirect users to their preferred domain, either with or without the WWW subdomain (prefix). These changes do not require any code modifications.
The module is not domain-specific, meaning that the same configuration settings can be applied to multiple domains or instances.
The redirect uses a "301 Moved Permanently" HTTP response status code.
Important note
If you choose to enable HTTPS redirection, this module requires a pre-configured SSL certificate setup in order for HTTPS to work properly.
Recommended module
RobotsTxt
Let Drupal manage the robots.txt file, and take advantage of the features provided by the HTTPS and WWW Redirect module.
Ask your assistant about HTTPS and WWW Redirect
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.