Infinite redirect loop when route_normalizer_enabled is true

Created on 26 November 2019, about 5 years ago
Updated 6 August 2024, 4 months ago

Hello,

I migrated my D8 website from my dev (Linux) production server to a live (Windows) server. The site was in maintenance mode when I migrated it. When I took the site out of maintenance mode on production, the only page I could access was the home page. Attempting to access any other pages resulted in infinite loops. The urls looked like this: mysite.com/recipes?recipes?recipes?recipes...

I finally came across a fix described here: https://github.com/omega8cc/boa/issues/1061#issuecomment-331043217. I went to admin/config/search/redirect/settings and unckecked "Enforce clean and canonical URLs". The looping issue was resolved. Of course, all my redirects now look like this: mysite.com/recipes?recipe-url-old if I went to mysite.com/recipe-url-old and got redirected to /recipes.

What would cause this issue? What needs to be fixed in order for me to be able to re-enable that "Enforce..." setting? Is there something I should be looking for in the Windows server settings?

Here are the Windows server specs:

Windows Server 2016
IIS 10
PHP 7.2
MySql 8

πŸ› Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States hockey2112

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024