+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Redirect HTTPS to HTTP

Redirect HTTPS to HTTP

4 posts, 0 answered
  1. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    26 Feb 2013
    Link to this post

    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_HOST}{REQUEST_URI}" />
    </rule>

     

    Kind regards,
    Daniel

  2. Stefani Tacheva
    Stefani Tacheva avatar
    718 posts
    Registered:
    21 Nov 2016
    27 Feb 2013
    Link to this post
    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
  3. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    27 Feb 2013 in reply to Stefani Tacheva
    Link to this post

    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

  4. Atanas Valchev
    Atanas Valchev avatar
    414 posts
    Registered:
    04 Jan 2016
    04 Mar 2013
    Link to this post
    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
4 posts, 0 answered