https redirect loop

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
8 years ago
Hi:

I'm migrating a site from my old host to Azure.  My web.config file forces https with rule:

       <rule name="Redirect to HTTPS" stopProcessing="true">
          <match url="(.*)" />
          <conditions>
            <add input="{REQUEST_URI}" pattern="^\/t\/telemedicine\-news$" negate="true" />
            <add input="{HTTP_CLUSTER_HTTPS}" pattern="^on$" negate="true" />
            <add input="{HTTP_CLUSTER_HTTPS}" pattern=".+" negate="true" />
          </conditions>
          <action type="Redirect" url="https://{HTTP_HOST}/{R:0}" redirectType="SeeOther" />
        </rule>

In my old host it works.  In Azure I get the famous redirect loop issue.  

Any ideas greatly appreciated!

Thank you.
8 years ago
Hi fairyin:

It does support https, in fact https://mydomain.com returns redirect loop, but https://mydomain.com/login loads the page.  However, in this case, after successful login, redirect loop error page loads.
8 years ago
Have you tried removing the url rewrite from app.config? Nop has a way to force SSL using filters.
8 years ago
Hi craig.smith:

How do I force SSL using filters?  I'm on ver. 2.8.

Thank you!
8 years ago
Tropolis Group wrote:
Hi craig.smith:

How do I force SSL using filters?  I'm on ver. 2.8.

Thank you!


Hi,

May be it was't implemented in 2.8 ^
Is there "SSL enabled:" in "Admin\Configuration\Stores\Edit" panel?

If yes then some play it
8 years ago
Ah, thanks, I see the Use SSL option/checkbox at Cfg. > Settings > Gen. & Misc. > Security Settings tab.   And it seems to work well with the "built-in" nopC pages.  But on my custom pages it's not forcing SSL?  In another host, we had a rewrite rule in web.config to force SSL that worked great, but after migrating to Azure, the same rewrite rule causes the famous loop issue.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.