Duplicate URL parameters and redirect loop
-
The page gets into a redirect loop when there is a duplicate parameter in the URL. Here’s how to trigger the error:
1. Clear cache.
2. Go to: https://mydomain.com/?utm_source=1&utm_source=2
3. Page gets into redirect loop 301
4. Close the browser, open again and go to: https://mydomain.com
5. Page gets into redirect loop 301 -> https://mydomain.com/?utm_source=2
6. Clear cache to resolve the problem.The problem occurs only for these parameters from .htaccess:
### marker DROPQS start ### CacheKeyModify -qs:fbclid CacheKeyModify -qs:gclid CacheKeyModify -qs:utm* CacheKeyModify -qs:_ga ### marker DROPQS end ###
I found the error because someone added the wrong marketing campaign and users are coming to me from addresses like:
https://mydomain.com/?utm_source=Google&utm_medium=CPC&utm_source=google&utm_medium=cpc
This causes the page to loop for all users until I clear the cache.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Duplicate URL parameters and redirect loop’ is closed to new replies.