Dispatcher redirecting requests from https:// to http:// and then again to https://
Hi All,
I have the below set of dispatcher configuration in place -
1. VHost File -
<VirtualHost *:80>
2. Rewrite Rule -
# Add .html extension when extension is missing from request
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^.]*[^./])$ $1.html [R=301,L]
On testing this rule its working fine as seen below -

However, when running it on my development cloud server, the logs are generated as follows -
https://brandA.com/content/brandA/us/en/home
http://brandA.com/content/brandA/us/en/home.html
https://brandA.com/content/brandA/us/en/home.html
As you can see there is a https:// to http:// redirection happening with 301 status in the network XHR.
Can you please suggest what might be causing this scheme change ?
@arunpatidar , @albinis1 , @joerghoh
Thanks,
Rohan Garg


