April 02, 2014
WordPress Infinite 301 Redirect Loop
Depending on your current environment setup, there’s a chance you’ll come across an infinite 301 redirect loop when installing WordPress. If you do, there’s a simple temporary solution to fix the problem.
Place this line of code in your theme’s functions.php file.
remove_filter( 'template_redirect', 'redirect_canonical' );
This will prevent the redirection for feeds, trackbacks, searches, comment popup, and admin URLs.
I wouldn’t recommend this as a permanent solution, but it’ll definitely buy you some time while your trying to figure out the real issue.