Admin interface results in infinite redirect loop

Hendrik Clercx asked on November 10, 2020 09:52

Hello

For one of our customers we did a release to production yesterday. Everything went correctly except that the admin interface is stuck in a redirect 302 loop. After the deploy it's not possible anymore to go to mysite.com/admin. It keeps loading and redirecting.

Before the deploy there was no issue, no changes were made to IIS nor to the hosting configuration. If I go back to version before the deploy, there is no redirect issue, thus I has to be coming from the new code deployed.

On our test environment we do not have this problem. If I disable the "SSL for administration interface" checkbox, then I don't have redirect issues but the admin interface doesn't work properly since it requires https for for example package uploading & installing.

The deploy also contains an upgrade of .NET 4.5 to .NET 4.6.1, running on Kentico 10. Our server runs on IIS 8.5.

Chrome network tab: Image Text

Correct Answer

Hendrik Clercx answered on November 10, 2020 11:15

Apparently the production environment contained some code that was different from our local environment. This code change was not tracked in Git and thus overwritten with each new deploy.

The issue was the HandleSSLRequests event. See here for documentation. The code from Git was not correct and it was only fixed on production directly.

0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.