Two 301 redirections are happening whenever a 301 redirect rule is applied from AEM dispatcher
We have implemented 301 redirections by adding rewrite rules to our dispatcher configurations. We see two 301 redirects are happening in network tab in our site whenever the 301 rewrite rules gets executed
For example in case of the page https://abcd.com/content/abc/us/en/support.html URL is hit in the browser, First 301 is happening to http://abcd.com/support.html (Where the redirect is happening to HTTP instead of HTTPS) Then next redirection happens to https://abcd.com/support.html (First request is going to HTTP and then to HTTPS) Instead it should directly redirect to https site. We are trying to check why the first redirection is happening to HTTP.
Below is the rewrite rule we added in dispatcher configurations
RewriteRule ^/content/abc/us/en/(.*)(.html)$ /$1.html [R=301]
Note: We are using AEM as a cloud service
Any help is highly appreciated
