AEM Cloud : HTTPS protocol not getting preserved while redirecting to landing page by accessing domain(brand.com)
When I am accessing brand.com site, below redirects are happening
Actual:
https://www.brand.com(Status code : 302) -> http://www.brand.com/content/brand/in/en/landingpage(Status code : 302 Internal redirect) -> https://www.brand.com/content/brand/in/en/landingpage(Status code : 302) -> http://www.brand.com/en/landingpage(Status code : 302 Internal redirect) -> https://www.brand.com/en/landingpage(Status code : 304)
Expected :
There should not be redirect from https to http
https://www.brand.com ->
https://www.brand.com/content/brand/in/en/landingpage ->
https://www.brand.com/en/landingpage
Dispatcher Rewrite rule:
RewriteCond %{HTTP_HOST} brand.com
RewriteRule ^/?$ /content/brand/in/en/landingpage [R,L]
RewriteCond %{REQUEST_URI} !^/apps
RewriteCond %{REQUEST_URI} !^/content
RewriteCond %{REQUEST_URI} !^/etc
RewriteCond %{HTTP_HOST} brand.com
RewriteRule ^/(.*?)(/?)$ /content/brand/in/$1.html [PT,L,NC]
Please provide your inputs/suggestion to resolve this issue.