Fixing Common Redirection Plugin Issues: Loops, 404s, and Cache Problems
Content
If you're using the Redirection plugin for WordPress, you might occasionally run into issues where your redirects don't work as expected. This troubleshooting guide covers the most common problems and their solutions, based on community discussions.
1. Redirect Loops (ERR_TOO_MANY_REDIRECTS)
Problem: Your browser shows a "too many redirects" error. This happens when a URL redirects to another URL, which then redirects back to the original, creating an infinite loop.
Why it happens: This is often caused by having multiple redirect rules affecting the same URL. For example, you might have a rule in Redirection and another rule in your .htaccess file, both trying to handle the same request, conflicting with each other.
Solution: Audit all your redirects. Check not only the Redirection plugin's settings but also your site's .htaccess file and any caching/CDN settings (like Cloudflare) for conflicting rules. Use a tool like Redirect Li to trace the path a URL takes and identify where the loop is occurring.
2. Redirects Not Working from Search Engines or Specific Sources
Problem: A redirect works when you type the URL directly into your browser's address bar but fails when you click on a link from Google Search Results or another website.
Why it happens: The most common culprit is browser or server cache. Your local browser might have cached the old 404 page, or your server's caching mechanism (like Varnish, WP Rocket, or a CDN) is serving an old, cached version of the page before the redirect rule is processed.
Solution: Always clear your browser cache and cookies after creating new redirects. Furthermore, purge your server-level and CDN caches. If you use a caching plugin or service, consult its documentation for instructions on clearing the cache.
3. Trailing Slash Mismatches
Problem: A redirect works for example.com/post but not for example.com/post/ (or vice-versa), sending users to a 404 page instead.
Why it happens: By default, Redirection treats URLs with and without a trailing slash as different addresses.
Solution: Enable the "Ignore trailing slash" option when creating or editing your redirect. This setting tells the plugin to treat /url and /url/ as the same source, ensuring the redirect works for both variations.
4. Target URL Returns a 404
Problem: You set up a redirect, but it sends users to a page that doesn't exist (a 404 error).
Why it happens: The Redirection plugin does not create pages. This error means the page or post you are redirecting to (the target) has been deleted, its URL has changed, or it never existed. The plugin simply points the old URL to the new one; it cannot fix an invalid target.
Solution: Double-check that the target URL you entered is correct and that the page or post actually exists and is published on your site.
5. URLs with Question Marks (&) and Parameters Not Redirecting
Problem: Redirects for URLs containing query parameters (everything after the ?) fail to work.
Why it happens: This is typically not a problem with the Redirection plugin itself, which handles query strings correctly. The issue is almost always related to caching, as mentioned in point 2.
Solution: Clear all relevant caches (browser, plugin, server, CDN). The redirect should function properly once the cached version of the old URL is purged.
General Best Practices
- Test with a Tool: Use an online HTTP header checker like Redirect Li to see exactly what is happening with your URL. This tool will show you the final status code and destination, bypassing your local browser cache.
- Check for Conflicts: Other plugins, especially those related to caching, security, or SEO, can sometimes interfere with redirects. Try temporarily disabling other plugins to see if the issue resolves.
- Regular Expressions: For complex pattern-based redirects, ensure your regex is correct. The Redirection support site has excellent documentation on using regular expressions.
By methodically working through these common issues, you can resolve most problems encountered with the Redirection plugin.
Related Support Threads Support
-
Redirection paramhttps://wordpress.org/support/topic/redirection-param/
-
Need help with a custom redirecthttps://wordpress.org/support/topic/need-help-with-a-custom-redirect/
-
Redirects not triggeringhttps://wordpress.org/support/topic/redirects-not-triggering/
-
general redirect questionhttps://wordpress.org/support/topic/general-redirect-question/
-
url gets encode and then not recognizedhttps://wordpress.org/support/topic/url-gets-encode-and-then-not-recognized/
-
editing a redirect caused 404https://wordpress.org/support/topic/editing-a-redirect-caused-404/
-
Post Redirections Work Perfectly But It’s Now Giving Errors On Pageshttps://wordpress.org/support/topic/post-redirections-work-perfectly-but-its-now-giving-errors-on-pages/
-
Need help in redirectionhttps://wordpress.org/support/topic/need-help-in-redirection/
-
Redirect if 404 AND URL contain /test/https://wordpress.org/support/topic/redirect-if-404-and-url-contain-test/
-
redirects for urls with $ sign not workinghttps://wordpress.org/support/topic/redirects-for-urls-with-sign-not-working/
-
Redirecting whole site not working for homepage from search resultshttps://wordpress.org/support/topic/redirecting-whole-site-not-working-for-homepage-from-search-results/
-
Redirects not working from Google Serpshttps://wordpress.org/support/topic/redirects-not-working-from-google-serps/
-
redirects result in Oops! That page can’t be found.https://wordpress.org/support/topic/redirects-result-in-oops-that-page-cant-be-found/
-
Redirections Ending /https://wordpress.org/support/topic/redirections-ending/
-
Redirection created a 404 pagehttps://wordpress.org/support/topic/redirection-created-a-404-page/
-
Redirect to homepagehttps://wordpress.org/support/topic/redirect-to-homepage-16/
-
Referrer Helphttps://wordpress.org/support/topic/referrer-help/
-
Redirect only when page is refreshedhttps://wordpress.org/support/topic/redirect-only-when-page-is-refreshed/
-
Appending any path to any post URL results in a 200 response instead of 404.https://wordpress.org/support/topic/appending-any-path-to-any-post-url-results-in-a-200-response-instead-of-404/
-
Google Search Console 404 Error Report For /1000 URLs Spikehttps://wordpress.org/support/topic/google-search-console-404-error-report-for-1000-urls-spike/
-
Redirection not workinghttps://wordpress.org/support/topic/redirection-not-working-49/
-
Redirect all subpages to homehttps://wordpress.org/support/topic/redirect-all-subpages-to-home/
-
help with rulehttps://wordpress.org/support/topic/help-with-rule/
-
Can I redirect */?cat=-1https://wordpress.org/support/topic/can-i-redirect-cat-1/
-
404 for /tag/-/ and /tag/–/ and /tag/—/ etc…https://wordpress.org/support/topic/404-for-tag-and-tag-and-tag-etc/
-
Nonexistent redirects on pages that should be 404shttps://wordpress.org/support/topic/nonexistent-redirects-on-pages-that-should-be-404s/
-
Redirect Domain – Subdomainhttps://wordpress.org/support/topic/redirect-domain-subdomain/
-
Old site host to new site pagehttps://wordpress.org/support/topic/old-site-host-to-new-site-page/
-
Training slash missinghttps://wordpress.org/support/topic/training-slash-missing/
-
Redirection not workinghttps://wordpress.org/support/topic/redirection-not-working-48/
-
Redirect only works with a trailing slashhttps://wordpress.org/support/topic/redirect-only-works-with-a-trailing-slash/
-
Redirecting a site into WordPresshttps://wordpress.org/support/topic/redirecting-a-site-into-wordpress/
-
Regen Issuehttps://wordpress.org/support/topic/regen-issue/
-
How to add redirect with ? markhttps://wordpress.org/support/topic/how-to-add-redirect-with-mark/
-
redirects failhttps://wordpress.org/support/topic/redirects-fail/
-
Redirects happening that I did not set uphttps://wordpress.org/support/topic/redirects-happening-that-i-did-not-set-up/
-
Referrerhttps://wordpress.org/support/topic/referrer-3/
-
new user helphttps://wordpress.org/support/topic/new-user-help-2/
-
URLs with {{item[‘bod-taxo-cat-url’]}} in slug wont redirecthttps://wordpress.org/support/topic/urls-with-itembod-taxo-cat-url-in-slug-wont-redirect/
-
Cannot create redirect for http Home pagehttps://wordpress.org/support/topic/cannot-create-redirect-for-http-home-page/
-
getting redirects from htaccesshttps://wordpress.org/support/topic/getting-redirects-from-htaccess/
-
How to wild redirect parameterhttps://wordpress.org/support/topic/how-to-wild-redirect-parameter/
-
404 urls seem to be working okayhttps://wordpress.org/support/topic/404-urls-seem-to-be-working-okay/
-
redirection not working with qr codehttps://wordpress.org/support/topic/redirection-not-working-with-qr-code/
-
Deleted Page Won’t Redirecthttps://wordpress.org/support/topic/deleted-page-wont-redirect/
-
blog redirection from folder perspective.https://wordpress.org/support/topic/blog-redirection-from-folder-perspective/
-
Created redirects with 404 errorshttps://wordpress.org/support/topic/created-redirects-with-404-errors/