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?
<
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:
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,