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.

{ 15 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 fur­ther into why this hap­pened and how to fix it with­out an extra plugin/hack.

Thank you though!

Hichem February 20, 2009 at 10:42 am

Hi,

Thanks for the infor­ma­tion Jason.

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

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

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

Josh Salverda March 8, 2009 at 9:11 pm

Holy crap, thank you so much for post­ing this!

I have been strug­gling over the past two days with a shared ssl redi­rect issue!

This plu­gin fixed it, and I’m so happy right now, lol.

Thanks again!

:) :) :) :)

Spleeep April 30, 2009 at 7:45 pm

Dude.

I was los­ing 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 won­der­ful :D

Mostafa June 11, 2009 at 5:59 am

WORDKED… (I relieved !)

Spe­cial thanks to you for offer­ing this step by step help.

(From I.R.Iran)

David June 25, 2009 at 1:20 pm

You, Mark Jaquith, and Sean at rack­space cloud (who directed me here) are awe­some. i felt like i was in a strait­jacket until i used this plu­gin.
thank you.

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

Thank you very much, I was hav­ing great dif­fi­cul­ties with a Shopp plu­gin that hit a redi­rect loop when any­one tried to use the check­out to make a pur­chase. Prob­lem solved within min­utes thanks to your advice!

Jason (a dif­fer­ent Jason)’s last blog post..Web­site design for learn­ing 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 data­base) using the lat­est as of today (2.8.2).

Fol­lowed the 5 minute install.

First time look­ing at the site it asked for name of the site and email. Once entered, it just started redi­rect loop error.
Both for the main page and for the wp-admin page (which even­tu­ally goes to the main page to redi­rect loop error).

The only page i have man­aged to see is the wp-admin/install.php page which cor­rectly states that is has already been installed.

I have removed all plu­g­ins (few since we didn’t add any).
Finally added the canon­i­cal redi­rect script.

No dif­fer­ence. Any ideas?

Curt July 24, 2009 at 5:20 pm

Fol­lowup:
I ran­domly started explic­itly try­ing pages with in wp-admin. Finally got to the dash­board. Once there, I was able to acti­vate the no redi­rect plu­gin. Every­thing now works great.
Never would have fig­ured it out with­out this site.
Thank you

giuly August 23, 2009 at 2:24 am

thank you very much
I have found the plu­gin theme my login that gen­er­ated the loop.

Pablo December 16, 2009 at 11:56 pm

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

I had the site run­ning fine locally, but once i exported it to remote server… loop­ing took place.

Thanks again! YOU ROCK!

JRKIE December 31, 2009 at 3:30 am

Alot of peo­ple have told me about this prob­lem and usu­ally my fix was dis­abling a “plu­gin” unfor­tu­nately not this time. I sure am glad you guys to the time to fix the prob­lem and offer free solu­tion is even better.

I didnt read the com­ments so I can­not 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 upgrad­ing to 2.9, and this won­der­ful plu­gin worked fine for me…

I’ve let every­one know on the French Word­press forum.

Happy New Year to you

Leave a Comment

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

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous post:

Next post: