N
N
Nick2016-10-27 12:30:10
IIS
Nick, 2016-10-27 12:30:10

How to force IIS not to redirect from HTTPS to HTTP?

Set up a binding for the site on HTTPS. But when you go to https://domain.com , it redirects to http.
In web.config ssl is enabled

<add key="SSLIsAvailable" value="true" />
<add key="SSLIsRequiredByWebServer" value="true" />

Somewhere there is a redirect, but I don’t understand where. If IIS is forced to redirect to HTTPS, it gives an error that a cyclic redirect has occurred.
Tested in incognito mode.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FTVale, 2020-07-14
@FTVale

Look in the settings of your hosting provider.
For example, Plesk has a "Preferred Domain" setting that will redirect visitors with an HTTP 301 code. If this setting is selected, it does not appear in Web.config in any way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question