<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: AEM Cloud : HTTPS protocol not getting preserved while redirecting to landing page by accessing domain(brand.com) in Adobe Experience Manager Questions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-cloud-https-protocol-not-getting-preserved-while-redirecting/m-p/451092#M129291</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17523634"&gt;&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I can see there are multiple 302 redirects happening which is not needed. Try below rules and modify as per your need. 1st to make sure the redirection is to https and 2nd one to append /content/brand. More [R] redirects are not needed in my opinion. You can have PT flag instead:-&lt;/P&gt;&lt;PRE&gt;RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^/?$ https://brand.com%{REQUEST_URI} [L,R]&lt;BR /&gt;&lt;BR /&gt;RewriteCond %{HTTP_HOST} ^brand.com$ [NC]&lt;BR /&gt;RewriteCond %{REQUEST_URI} ^/$&lt;BR /&gt;RewriteRule ^/$ https://brand.com/en&lt;SPAN&gt;/landingpage&lt;/SPAN&gt; [R=301,L]

RewriteCond %{REQUEST_URI} !^/apps
RewriteCond %{REQUEST_URI} !^/content
RewriteCond %{REQUEST_URI} !^/etc&lt;BR /&gt;&lt;SPAN&gt;RewriteCond %{HTTP_HOST} brand.com&lt;/SPAN&gt;
RewriteRule ^/(.+) /content/brand/in/$1 [PT,L,NC]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 07 May 2022 02:51:08 GMT</pubDate>
    <dc:creator>anish-s</dc:creator>
    <dc:date>2022-05-07T02:51:08Z</dc:date>
    <item>
      <title>AEM Cloud : HTTPS protocol not getting preserved while redirecting to landing page by accessing domain(brand.com)</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-cloud-https-protocol-not-getting-preserved-while-redirecting/m-p/451024#M129283</link>
      <description>&lt;P&gt;When I am accessing brand.com site, below redirects are happening&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Actual:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.brand.com(Status" target="_blank"&gt;https://www.brand.com(Status&lt;/A&gt; code : 302) -&amp;gt; &lt;A href="http://www.brand.com/content/brand/in/en/landingpage(Status" target="_blank"&gt;http://www.brand.com/content/brand/in/en/landingpage(Status&lt;/A&gt; code : 302 Internal redirect) -&amp;gt; &lt;A href="https://www.brand.com/content/brand/in/en/landingpage(Status" target="_blank"&gt;https://www.brand.com/content/brand/in/en/landingpage(Status&lt;/A&gt; code : 302) -&amp;gt; &lt;A href="http://www.brand.com/en/landingpage(Status" target="_blank"&gt;http://www.brand.com/en/landingpage(Status&lt;/A&gt; code : 302 Internal redirect) -&amp;gt; &lt;A href="https://www.brand.com/en/landingpage(Status" target="_blank"&gt;https://www.brand.com/en/landingpage(Status&lt;/A&gt; code : 304)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expected :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There should not be redirect from https to http&lt;BR /&gt;&lt;A href="https://www.brand.com" target="_blank"&gt;https://www.brand.com&lt;/A&gt; -&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.brand.com/content/brand/in/en/landingpage" target="_blank"&gt;https://www.brand.com/content/brand/in/en/landingpage&lt;/A&gt; -&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.brand.com/en/landingpage" target="_blank"&gt;https://www.brand.com/en/landingpage&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dispatcher Rewrite rule:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RewriteCond %{HTTP_HOST} brand.com&lt;BR /&gt;RewriteRule ^/?$ /content/brand/in/en/landingpage [R,L]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RewriteCond %{REQUEST_URI} !^/apps&lt;BR /&gt;RewriteCond %{REQUEST_URI} !^/content&lt;BR /&gt;RewriteCond %{REQUEST_URI} !^/etc&lt;BR /&gt;RewriteCond %{HTTP_HOST} brand.com&lt;BR /&gt;RewriteRule ^/(.*?)(/?)$ /content/brand/in/$1.html [PT,L,NC]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please provide your inputs/suggestion to resolve this issue.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 15:25:04 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-cloud-https-protocol-not-getting-preserved-while-redirecting/m-p/451024#M129283</guid>
      <dc:creator>sankar07</dc:creator>
      <dc:date>2022-05-06T15:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: AEM Cloud : HTTPS protocol not getting preserved while redirecting to landing page by accessing domain(brand.com)</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-cloud-https-protocol-not-getting-preserved-while-redirecting/m-p/451092#M129291</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17523634"&gt;&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I can see there are multiple 302 redirects happening which is not needed. Try below rules and modify as per your need. 1st to make sure the redirection is to https and 2nd one to append /content/brand. More [R] redirects are not needed in my opinion. You can have PT flag instead:-&lt;/P&gt;&lt;PRE&gt;RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^/?$ https://brand.com%{REQUEST_URI} [L,R]&lt;BR /&gt;&lt;BR /&gt;RewriteCond %{HTTP_HOST} ^brand.com$ [NC]&lt;BR /&gt;RewriteCond %{REQUEST_URI} ^/$&lt;BR /&gt;RewriteRule ^/$ https://brand.com/en&lt;SPAN&gt;/landingpage&lt;/SPAN&gt; [R=301,L]

RewriteCond %{REQUEST_URI} !^/apps
RewriteCond %{REQUEST_URI} !^/content
RewriteCond %{REQUEST_URI} !^/etc&lt;BR /&gt;&lt;SPAN&gt;RewriteCond %{HTTP_HOST} brand.com&lt;/SPAN&gt;
RewriteRule ^/(.+) /content/brand/in/$1 [PT,L,NC]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 May 2022 02:51:08 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-cloud-https-protocol-not-getting-preserved-while-redirecting/m-p/451092#M129291</guid>
      <dc:creator>anish-s</dc:creator>
      <dc:date>2022-05-07T02:51:08Z</dc:date>
    </item>
  </channel>
</rss>

