Why do I get a WordPress redirect loop?
Several reasons are trying to visit your site ends in an endless redirect loop. The exact message that's displayed will depend on the browser you're using. It's caused when there are multiple versions of your site, and they're endlessly referring back and forth between each other.
How do I fix an endless WordPress redirect loop?
To fix the too many redirects error, the first and easiest thing to do is clear your cookies and your cache and see if that solves it. If not, check to see if it's your .htaccess file causing it or if it's a plugin using redirects.
Fix with a fresh .htaccess file
- Always make a backup of the .htaccess file before doing anything
- After you've made a backup copy, delete it from your server
- Log in to your WP admin dashboard
- Go to General under Settings on the left
- Make sure the WordPress Address URL and website URL are the same (If one uses www in the name, the other should too. If you're using it without, just yoursite.com, neither of them should include the www)
- Save your changes
- Upload a fresh .htaccess file (Your .htaccess file should look like this)
Fix by finding a problem plugin
- If you use any plugins for 301 redirects, disable that first and see if it solves the problem.
- If not, deactivate all your plugins.
- If your site works after that, enable them one by one, checking your site after each one.