How To Fix The Redirect Loop Error In WordPress

How To Fix The Redirect Loop Error In WordPress

by Jason

in Featured Articles,Tutorials

This arti­cle is going to show you a sim­ple plug-in that will stop you from pulling your hair out when the “Redi­rect Loop” hap­pens to you.

You can check out the video overview at the bot­tom of this post.

 

311658424 38f05339f3 How To Fix The Redirect Loop Error In WordPress Image by mered­ith­farmer

What Is The Redi­rect Loop?

One exam­ple of a re-direct loop is, if some­one linked to your blog or a post, and the blog­ger changed the name of the link or url, when you visit the old url (if they are using redi­rec­tion) it will send you to the new link.

redirect loop error example

A redi­rect loop hap­pens when it keeps redi­rect­ing back and forth in an end­less cycle.   Luck­ily browsers cut the process short after a few tries, but if you have this hap­pen­ing to you, it can be bru­tal to try and fig­ure out what’s going on and how to fix it.

How To Fix The Redi­rect Loop Prob­lem in WordPress

Luck­ily this prob­lem can be solved in less than 30 sec­onds pro­vided you can login to your admin panel.  If you can­not login to your admin panel, check out the next sec­tion. Mark Jaquith cre­ated this won­der­ful plu­gin called Dis­able Canon­i­cal URL Redi­rec­tion, all you have to do is click that link, click down­load, and move the plu­gin to your plu­gin direc­tory (under wp-content) and acti­vate it, and your prob­lem should be solved.

How To Stop The End­less Redi­rect Loop When Access­ing The Admin Area

If you can­not get into the admin panel, you need to do check your plu­gin fold­ers via FTP and see if you have any redi­rec­tion plu­g­ins, if so delete them. If your site now works, great, if not, you’re going to have to delete your plu­g­ins one by one.

Before you start delet­ing all your plu­g­ins, I encour­age you to take the time to backup all your plu­g­ins first, that way if it takes you awhile to find the guilty plu­gin, you can start adding back the ones you need to delete. You will also avoid hav­ing to Google up their names.

If this does not work for you, you may need to either upgrade to the lat­est ver­sion of word­press, or revert to an older ver­sion.  You can check out my arti­cle and video on how to upgrade your word­press install.

Video Overview Show­ing How To Fix The End­less Loop Problem

Con­clu­sion

I hope this arti­cle has helped you, and your back to enjoy­ing your blog.  This can be a very frus­trat­ing prob­lem, and if you don’t know how to fix it, it can really mess you up.  Be sure to check back on this site for other “quick fix” solu­tions and more.  If you enjoyed this arti­cle, book­mark it (deli­cious), stum­ble it, and more. Talk to you soon.

{ 28 comments… read them below or add one }

Fred February 18, 2009 at 11:40 am

Hey Jason this worked like a charm for me! I am going to have to look further into why this happened and how to fix it without an extra plugin/hack.

Thank you though!

Hichem February 20, 2009 at 10:42 am

Hi,

Thanks for the information Jason.

@Fred Let us know if you found how to fix it without using the plugin.

iloveuab.com February 20, 2009 at 12:14 pm

Thanks for this write up on how to fix this damned problem. It scared the crap out of me!

Josh Salverda March 8, 2009 at 9:11 pm

Holy crap, thank you so much for posting this!

I have been struggling over the past two days with a shared ssl redirect issue!

This plugin fixed it, and I’m so happy right now, lol.

Thanks again!

:) :) :) :)

Spleeep April 30, 2009 at 7:45 pm

Dude.

I was losing my shit over this.

Thanks soo much… you’re site has been BOOKMARKED

:D

Spleeep

Janelle May 6, 2009 at 11:53 am

Thank you worked wonderful :D

Mostafa June 11, 2009 at 5:59 am

WORDKED… (I relieved !)

Special thanks to you for offering this step by step help.

(From I.R.Iran)

David June 25, 2009 at 1:20 pm

You, Mark Jaquith, and Sean at rackspace cloud (who directed me here) are awesome. i felt like i was in a straitjacket until i used this plugin.
thank you.

Jason (a different Jason) July 13, 2009 at 2:02 pm

Thank you very much, I was having great difficulties with a Shopp plugin that hit a redirect loop when anyone tried to use the checkout to make a purchase. Problem solved within minutes thanks to your advice!

Jason (a different Jason)’s last blog post..Website design for learning disability

Curt July 24, 2009 at 5:10 pm

None of these worked for me.
I have been doing a fresh install ( even a fresh database) using the latest as of today (2.8.2).

Followed the 5 minute install.

First time looking at the site it asked for name of the site and email. Once entered, it just started redirect loop error.
Both for the main page and for the wp-admin page (which eventually goes to the main page to redirect loop error).

The only page i have managed to see is the wp-admin/install.php page which correctly states that is has already been installed.

I have removed all plugins (few since we didn’t add any).
Finally added the canonical redirect script.

No difference. Any ideas?

Curt July 24, 2009 at 5:20 pm

Followup:
I randomly started explicitly trying pages with in wp-admin. Finally got to the dashboard. Once there, I was able to activate the no redirect plugin. Everything now works great.
Never would have figured it out without this site.
Thank you

giuly August 23, 2009 at 2:24 am

thank you very much
I have found the plugin theme my login that generated the loop.

Pablo December 16, 2009 at 11:56 pm

THANK YOU!!!! I really was going f*cking crazy with this looping around! I think what really messed mi site was that stinky super cache plugin.

I had the site running fine locally, but once i exported it to remote server… looping took place.

Thanks again! YOU ROCK!

JRKIE December 31, 2009 at 3:30 am

Alot of people have told me about this problem and usually my fix was disabling a “plugin” unfortunately not this time. I sure am glad you guys to the time to fix the problem and offer free solution is even better.

I didnt read the comments so I cannot go along with your theme here but i just want to say thanks

Elisabeth January 1, 2010 at 1:48 pm

Thanks so much!

I was despaired after upgrading to 2.9, and this wonderful plugin worked fine for me…

I’ve let everyone know on the French Wordpress forum.

Happy New Year to you

Kraig Grayson
Twitter:
February 10, 2010 at 10:00 pm

Hey Jason. Thanks a million dude. The “Disable Canonical URL Redirection” solved my problem in under 30 seconds. I could not believe how easy it was to fix the redirect error. Keep up the good work. I am going to mention your website, this post in particular, in my next blog post. Look out for it!
Kraig Grayson´s last blog ..Make Money While Advertising My ComLuv Profile

Mobi February 25, 2010 at 8:14 am

Ahhhhh !! exactly what i’ll search
very goood thanks :)
Mobi´s last blog ..Joomla! License Guidelines My ComLuv Profile

Autopilot Online Success April 5, 2010 at 1:18 am

Eureka! After trying many other solutions, none of which worked for me, this little plug-in did the trick. And yes this is a very frustrating problem.

Thank you for the great fix Jason.

Michael May 29, 2010 at 3:04 pm

Thank you so so much, I tried everything and nothing help, you advise worked

Fermin June 14, 2010 at 7:54 am

Thank you very much for your input. It has been very helpful and I was able to fix
the problem by installing the plugin and clearing my cookies.

Regards
Fermin´s last blog ..Uff!! Por los pelos… My ComLuv Profile

richard June 21, 2010 at 6:01 am

thanks for the tip, after 3 days of trying to figure out the problem, i renamed my plugin folder via ftp and i was able to reach my login page!!!! hooray.

Gavin June 21, 2010 at 7:05 am

Thanks so much for this post, solved my problem instantly! Much appreciated :)

Kendall June 22, 2010 at 12:57 am

Seriously saved me a major headache! I just upgraded to 3.0 and the redirect loop started. Bookmarking site.

Kat June 30, 2010 at 7:59 pm

You ROCK. THIS WORKED. Thank you all so much. This saved me so much time.

Gordon Clark July 19, 2010 at 8:46 am

For me, this plugin did not do the trick, but all I had to do to fix the problem is to add a trailing / to my website address.

James July 31, 2010 at 1:05 am

Thanks so much. I recently upgraded to 3.0.1 with multi-site and got the redirect loop problem. And as you said – within 30 seconds it was fixed!

At least now I can spend a little time finding the root of the problem now without the site being down…..

Elisabeth Heinicke August 4, 2010 at 1:24 pm

Thanks – brilliant!!!! (but I think it takes a little less than 30 seconds….)

Younes TARCHOUN
Twitter:
August 12, 2010 at 11:18 am

Thanks a lot, it works great for me. But I still not understand why we had this issue ? and when we Dis­able Canon­i­cal URL Redi­rec­tion, can that have any side effects.
Younes TARCHOUN´s last blog ..Video What is Gravatar My ComLuv Profile

Leave a Comment

  Twitter ID (ID only. No links or "@" symbols)

{ 2 trackbacks }

Previous post:

Next post: