frostschutz/Google-SEO — Issue #32: redirect loop with nginx, highlights
Author: frostschutz
Created: 2011-11-30 15:23:51+00:00
State: open
Labels: bug

MyBB's issue with wrong ?& in the URL, combined with nginx, combined with a highlight=word+word, leads to a redirect loop.

MyBB produces an URL like http://site&highlight=word+word without ? (workaround: enable MyBB SEF URL setting if possible)

nginx redirects it to http://site?highlight=word%2Bword (Apache does word+word or word%20word). [Is it nginx or apache misbehaving here?]

Google SEO Redirect sees word%2Bword which should be treated as word+word however it's treated as 'word word'. So Redirect is decoding the parameter twice.

The final redirect result however is word+word anyway so it redirects to word%2Bword (word+word) and doesn't notice that's already the correct location because it thinks it should be word+word (word word).

Redirect behaviour obiously needs to be fixed. Not sure what we can do about nginx behaviour.