Redirect HTTPS to HTTP - General Discussions - General Discussions - Progress Community
 General Discussions

Redirect HTTPS to HTTP

  • Redirect HTTPS to HTTP
  • Hi all,

    I've already asked this question on StackOverflow, but no replies.

    I have a Sitefinity websites running on IIS 7.5. It is not a secured website. When someone navigates to the https variant of the website, it runs into an error. Probably we need to redirect incoming requests from HTTPS to HTTP.

    I've tried the following code, but without success. Anyone has experience with rewriting rules in IIS?

    <!-- https:// to http:// rule -->   
    <rule name="ForceNonHttps" stopProcessing="true">
      <match url="(.*)" ignoreCase="true" negate="true" />
      <conditions>
          <add input="SERVER_PORT" pattern="^443$" />
      </conditions>
      <action type="Redirect" redirectType="Found" url="http://HTTP_HOSTREQUEST_URI" />
    </rule>

     

    Kind regards,
    Daniel

  • Hi Daniel,

    Please review the following blog post where you will find useful information:
    http://www.sitefinity.com/developer-network/knowledge-base/securing-a-sitefinity-backend-with-ssl

    If you have configured SSL correctly, there is no need to redirect users to http again.

    All the best,
    Stefani Tacheva
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  • Hi Stefani,

    Thanks for your reply.

    It is not that I need SSL on the SF frontend or backend. I just want to redirect all requests that are coming from SSL / HTTPS to a normal HTTP site. It is probably off-topic, because it should be configured inside IIS, but I'm a bit stuck on this, since I'm not an IIS expert.

    For example: people that use Gmail or Facebook can force to always browse secured. E.g. with HTTPS. When they then browse to this SF website, they still are on HTTPS. This site is not configured to handle this, so I need a rule that redirects all to HTTP.

    Kind regards,
    Daniel

  • Hi Daniel,

     You could try modifying the Canonical sample from this blog:http://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/ to strip https instead of www. That way you will be able to redirect/rewrite to www.site.com

    Greetings,
    Atanas Valchev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items