Apache http to https redirect is not working
Symptoms
When using Apache, redirection does not work after enabling the Redirect HTTP-requests to HTTPS option in the site settings.
Causes
The .htaccess file contains the RewriteEngine on directive.
Solution
Two possible solutions:
- Use the
inheritvalue instead ofon. In this case, Apache will inherit the rules from the site configuration; - Manually set the redirect rules, sourcing them from the site configuration.