Too many redirects error when using custom cache buster
-
I spent a lot of time trying to figure out what was causing these redirect errors on my site. They would happen on logout and also on the Easy Digital Download cart for logged out users.
I thought it was related to cache, as I pinned it down to this plugin, but after spending a lot of time trying to resolve that I realized it was being caused by my custom cache buster, which was just a lowercase L i.e. ?l=1. If you look at the URL of the logout page it starts with a lowercase L. wp-login.php?loggedout=true&wp_lang=en_US.
I picked a lowercase L because it’s the most inconspicuous query string you can use, since it’s only 1 letter and one of the thinnest letters. It looks really nice and clean.
Can you make it so the 301 SEO redirect only redirects if the cache buster query string is a full match? It seems like it’s trying to do it even if it isn’t a full match as it’s trying to redirect ?loggedout when the cache buster is set to just ?l.
- The topic ‘Too many redirects error when using custom cache buster’ is closed to new replies.