Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Fix Error Too Many Redirects Issue in WordPress

Editorial Note: We earn a commission from partner links on WPBeginner. Commissions do not affect our editors' opinions or evaluations. Learn more about Editorial Process.

Are you trying to fix the ‘Error too many redirects’ issue on your WordPress website?

It is a common WordPress error that may be caused by a plugin or incorrect settings. However, it leaves users locked out of their WordPress websites, which makes it particularly troublesome.

In this article, we will show you how to easily fix the ‘Error too many redirects’ issue in WordPress. We will also cover how to regain access to your website and troubleshoot the error.

Fixing too many redirects error in WordPress

What Causes the ‘Error Too Many Redirects’ Issue in WordPress?

‘Error too many redirects’ is caused by a misconfigured redirection issue in WordPress.

As you might already know, WordPress has an SEO-friendly URL structure feature that uses the redirect function. Similarly, many popular WordPress plugins use this feature to set up temporary redirects, create permanent 301 redirects, and fix 404 errors.

If you are using a plugin to fix the SSL insecure content issue or a WordPress caching plugin, then it may also affect redirects and cause the ‘too many redirects’ error.

This is how the ‘ERR_TOO_MANY_REDIRECTS’ message looks in Google Chrome.

Error Too Many Redirects in Google Chrome

However, this error doesn’t tell you what is causing the conflict and forcing the redirect loop in WordPress.

This is how the error looks in Firefox with the message ‘The page isn’t redirecting properly’.

Too many redirects error in Firefox

That being said, let’s take a look at how to fix the error too many redirects issue in WordPress.

We will walk you through step-by-step troubleshooting, getting access to your WordPress site, and preventing the error from happening again.

Video Tutorial

Subscribe to WPBeginner

If you’d prefer written instructions, then just keep reading.

1. Clear Browser Cookies and Cache

A common cause of the error could be your web browser cookies. Try accessing your website using a different web browser, like Firefox, Safari, Opera, or Microsoft Edge.

If you are able to access your website normally using a different browser, then you need to clear browser cookies and cache in your regular browser.

Clear cookies and cache in Google chrome

We have a detailed guide on how to clear your browser cache in all major browsers that will help you do that.

On the other hand, if changing the browser doesn’t fix the issue, then you can move on to the next step.

2. Deactivate All WordPress Plugins

The most common cause of the WordPress redirect loops or ‘ERR_TOO_MANY_REDIRECTS’ is a plugin conflict. A WordPress plugin trying to set up a redirect in a way that conflicts with the default WordPress redirects can cause this error message.

To fix this, you need to deactivate all WordPress plugins on your website. Normally, you can just go to the Plugins » All Plugins page in the WordPress admin area and deactivate plugins from there.

Deactivate all plugins

However, we are assuming that due to the redirect error, you may be unable to access the WordPress admin area.

In that case, you will need to deactivate WordPress plugins using an FTP client like FileZilla or the File Manager app in your WordPress hosting control panel.

Simply connect to your website using an FTP client and go to the /wp-content/ folder.

Renaming the plugins folder using FTP

There you will find the plugins folder, which you need to rename to ‘plugins.deactivate’.

Doing this will deactivate all the WordPress plugins on your site.

Renamed plugins folder

Basically, WordPress looks for a folder called plugins to load the plugin files. When it does not find the folder, it automatically disables the active plugins in the database.

Now, you can try visiting your WordPress website. If you are able to log in to your WordPress admin area now, then this means one of the plugins was causing the error.

To figure out which plugin was the culprit, you need to switch back to the FTP client or File Manager app and rename your plugins.deactivate folder back to ‘plugins’.

After that, switch to the WordPress admin area of your website and go to the Plugins » All Plugins page. From here, you can activate your plugins one by one and then visit your website to see if you can reproduce the error.

Once you find the plugin that is causing the error, you can find an alternative to that plugin or report the issue to the plugin’s WordPress support forum.

3. Fix WordPress URLs

Another major cause of this error is a misconfiguration in WordPress URL settings. Normally, you can view these options on the Settings » General page.

WordPress URL settings

For most websites, the URLs in the WordPress Address and Site Address fields must be the same. However, some users may end up using ‘www’ in one URL and a non-www URL in the other.

Since you might not have access to the WordPress admin area, you may need to fix the WordPress URLs using an FTP client or the File Manager app.

Simply connect to your WordPress site using an FTP client and go to /wp-content/themes/your-theme-folder/.

Edit functions.php file

From here, you need to find the functions.php file and edit it using a plain text editor like Notepad or TextEdit.

Next, you need to add the following code at the bottom:

update_option( 'siteurl', 'https://example.com' );
update_option( 'home', 'https://example.com' );

Don’t forget to replace ‘https://example.com’ with your own site URLs. You can now save your changes and upload the file back to your website.

After that, try visiting your website to see if this resolves the error.

For more methods, see our tutorial on how to easily change WordPress URLs.

4. Reset WordPress .htaccess File

The .htaccess file is a special file that is used by the website server to manage redirects and other server settings. WordPress also uses this file for SEO-friendly URLs and other redirects.

Sometimes, WordPress plugins may make changes to your website’s .htaccess file, which can trigger this error. It is also possible that deactivating a plugin will not remove those changes from your .htaccess file.

In that case, you will need to manually reset your WordPress .htaccess file.

Again, you will need to access your website using an FTP client or the File Manager app in your hosting dashboard. Once connected, you will see the .htaccess file in the root folder of your website.

Editing .htaccess file via FTP

Note: If you cannot find your .htaccess file, then see our guide on how to find .htaccess file in WordPress.

First, you need to download a copy of your .htaccess file to your computer as a backup. After that, you can go ahead and delete the file from your website.

You can now try visiting your WordPress blog. If everything works normally, then this means your .htaccess file was causing the redirect error.

Now, since we deleted the .htaccess file, you will need to recreate it. Normally, your WordPress website can do it on its own. To make sure, just go to Settings » Permalinks page and click on the ‘Save changes’ button at the bottom.

Refresh permalinks to create .htaccess file

5. Preventing Error Too Many Redirects in WordPress

Hopefully, the steps we just covered have fixed the redirect issue on your website. If they did not fix the problem, then you may need to talk to your WordPress hosting company to make sure that there isn’t a server issue.

Once they fix the issue on your site, you should also be able to figure out what caused it.

If it was a plugin, then you need to report the issue to the plugin’s support forum. See our guide on how to ask for WordPress support. However, if you are unable to get help, then you can always find an alternative plugin that does the same thing.

If the error was caused by a WordPress site misconfiguration, then you can make a note of it and ensure that your site settings are properly set up.

For more tips, see our detailed tutorial on how to troubleshoot WordPress issues on your own like a total WordPress pro.

We hope this article helped you resolve the ‘error too many redirects’ issue on your website. You may also want to bookmark our ultimate handbook of common WordPress errors and check out our list of the best WordPress SEO plugins and tools.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

303 CommentsLeave a Reply

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Gerjon says

    When plugins are the issue (a sort of site appears when the plugins folder in de-activated), chances are you’ve used an ‘under constructions’ plugin when building the site on a temp location. de-activate this plugin first!

  3. Bene says

    Hi,
    I’ve followed to the letter this tutorial to move my site from my localhost to my production site. However I’m having issues with accessing the site.
    I’m all good to access the WP-admin dashboard however I cannot get to the website, for some reason it keeps redirecting me to my localhost.
    This is driving me nuts:
    – I’ve updated the wp_ptions both home and siteURL
    – I’ve placed the .htaccess as per the comment
    – I’ve searched my database and could not find anywhere else except on cross-page links localhost
    I really don’t know how this redirect to my localhost is taking place.
    Any hint?

  4. Nate Balcom says

    Thanks so much this worked like a champ. It took all of 2 minutes and I was able to get back into my admin. Much appreciated. I’m going to share the bajesus out of this.

  5. kiran dev says

    copy plugin folder from wp-content and place it somewhere else then just delete plugin folder from wp-content and reload your wp-admin.php url now it ask for wp login…enjoy but all plugins will deactive and copy plugin folder from where you saved it and paste inside wp-content…..
    now its normal ……

    thanks me later :)))

  6. Dan N says

    I’ve been trying to solve this issue. My site works fine and I’ve removed the plugins directory, but I can’t seem to get to my wp-admin page. Anything beyond wp-admin results in 404 and if I go to /wp-admin, it results in ‘too many redirects’.

    Can’t seem to figure it out!!!!! Please help!!

    • WPBeginner Support says

      First try the section ‘Change Site URL Without Access to Admin Area’ in the article above. Try adding www to your site URL. If it already has it, then try removing it. If this does not solve your problem, then try these steps.

      Connect to your website using FTP.

      In your site’s root folder, locate the .htaccess file and download it to your computer as backup.

      Edit the FTP file on your webserver and paste this code inside it.

      # BEGIN WordPress
      <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteBase /
      RewriteRule ^index\.php$ - [L]
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule . /index.php [L]
      </IfModule>
      # END WordPress
      

      Try accessing your website and admin area now.

      Admin

      • Dan N says

        OK so get this. I did all of the possible things from this site and others and absolutely none of it worked. Then I went to do a restore to a previous backup and it got worse. HTTP500s all around.

        After some troubleshooting, it turned out somehow Namecheap’s file permissions got mucked around with (not by me) and once that was fixed by the tech, everything came back up just fine.

        I guess you can’t really rule out SERVER ISSUES even if it isn’t being controlled by you.

  7. Latif says

    Thankss aaaaloottt brooooo…. I’ll reinstall my wordpress if i dont find how to fix here hahahahahaha

  8. Intan says

    Help please, i added in script into the html body in wordpress.. then my website is not accessible. I have deleted the script but still cannot access my website.any advice?

  9. Jon says

    Is it possible that having the url setting you mentioned in your first solution could cause the cycle of redirects if they are set to https but a plugin is forcing all pages but one to http?

  10. Javier says

    Hi! Ijust upgraded WP on one of my sites to 4.4.1. After doing so, site loads fine, but when trying out wp-admin, I keep getting a:
    The page isn’t redirecting properly error.
    I tried to delete .htaccess but I don’t see it regenerated. I also tried to rename plugins folder with no luck.
    Permissions seem to be fine, and it is just wp-admin failing.

    Any clues you can share with me?

  11. Rantej says

    Just sharing solution that worked for me. I had tried everything including disabling plugins, changing themes, home & site url in phpmyadmin or wp-config etc. But in the end just deleted and uploaded the recent wp-admin and wp-includes folder. Everything is back to normal

  12. Sam says

    Had this issue. Added a new SSL certificate. Discovered it was a setting in WooCommerce under Checkout Settings. Had to uncheck the “Force HTTPS after checkout” option. Instead, I used the Force https plugin.

  13. Donna says

    Just created a new page on my blog and am getting a redirect loop on it. Just on the one page. All of the other pages seem to work.

    Before it happened I click the buy button and since that it went to redirect. Baffled… but hate the idea of reloading all of the plugins. Hoping there is a shorter solution.

  14. Jamie says

    Just the information I was looking for! I changed my DNS then quickly changed back to the original DNS after some issues. Now, I get this error in Firefox and some other browsers. Is this something that my host has to fix?

  15. Sumon says

    hi thanks for nice post, still i am wonder how to solve my website loop error, i am facing problem on particular feed page that is showing error, pls reply to solve my problem

    • WPBeginner Support says

      It seems your feed is redirecting to an unauthorized URL. This could mean that your site is infected. Before you do anything else, first deactivate all your WordPress plugins and switch to a default WordPress theme like twenty sixteen. If this resolves your problem then it was an issue with one of your plugins or your WordPress theme. If this does not help, then try steps in our step by step guide fixing hacked WordPress site.

      Admin

  16. Uzair Hayat says

    I’m not sure what caused the error on my site upon launch.
    A few users started facing redirect errors including some on my team.
    I believe this was the work of some plugin, but i cant put my finger on it :/

    I was able to fix the problem by removing www from my urls.

  17. Adam says

    Thank you for this post. I have been trying to deal with my redirect problem for days. I have tried everything on this site, yet the problem persists. I even did a fresh install. And, while that helped googlebot being able to crawl my site and helped my sitemap not being redirected, I still have a redirect issue when I use the seobook header check tool.

    I even changed the permission to 755 on only the directories of wp_admin. The only thing I haven’t done is delete .htaccess because if something goes wrong there, then I would have to rebuild the site. And, I’ve been at this too long to rebuild it again to have the same problem.

    Is it a hosting issue? I’m with godaddy and the site is carauctiongurus.com . I definitely learned a lot about WordPress having this redirect issue. Can you help?

      • Adam says

        Thank you. I have done what you asked and the site is still reachable, however SEOBook and MXToolbox still show and infinte redirect loop. Should I give it some time first? Thanks again.

  18. Nikhil says

    Thanks for all…

    After research of two days and try everything in that blog….

    Finally I found

    0750 replace 0755

    Done…..

    The Best Blog I Ever seen for WordPress Solution….

    All Solution at One Place….

    Keep Posting……

    • Strahinja Krstić says

      Hey NIKHIL,

      Thanks for your comment. Just one question:

      You said “0750 replace 0755”. Do that numbers mean file permissions for FTP folders?

  19. Craig says

    First I want to thank you for your article.

    Some of this worked, all of it help me troubleshoot.
    If you have Woo-commerce installed into your blog for a store add-on there are additional settings added to your Permalink Settings; Common Settings and Product permalink base.

    The Common Settings are for the articles and must be set to any setting other than default or Custom Structure. This will stop the error.
    You helped me, I hope this helps another.

    C-

  20. Taufiq says

    Thank you for the tip. It worked! I messed up the WP settings when I changed the site address URL and WP address URL from teasan.com.au to teasan.com.au/organic-matcha ….. the website then went to a redirect loop! Couldnt even log in.

    Downloaded FileZilla and added

    define(‘WP_HOME’,’http://example.com’);
    define(‘WP_SITEURL’,’http://example.com’);

    as suggested and it worked!! Thank you so much.

    However, now the URLs on the settings are pretty much locked. But its ok, I dont think I will ever change it again!

  21. Caroline says

    I found that mine was caused by a missing trailing slash “/” at the end of my upload_url_path in the wp_options database table…

  22. Presto says

    After looking at several highly technical and complicated to no result, your post did the trick. To me, it was the plugin I chose to include during the WP installation.

    Thanks a lot!

  23. Jose says

    My website was doing good, but I installed woocommerce plugin on my site and now my website has this error message, so like I read it is good to contact my host?

  24. megan says

    if we change mysql username and password
    in cpanel or … and if we don’t edit wp-cofing.php file this error follow us

  25. Josh says

    I tried this solution and it completely complicated things even more, making the issues much worse. Be careful, always seek out the help of a professional developer before playing around with areas like this in your website.

  26. David says

    Great post. I also had the issue of the redirects and here is one solution that I came across just recently. I had deactivated the plugins and had the url in the proper locations. What happened is that I transferred the site over to another host. The issue that I came across was the php.ini file that was causing the issue. Some servers will let you put in a custom .ini file while others do not. I deleted the .ini file since it was not needed in the new server since I set the php files to be all the same for multiple accounts. Once I did that, I was able to log in the site as usual.

    • sandeep says

      David,

      Could you please elaborate on how you resolved the issue. I am facing the same probelm, we moved the site to a new host and new domain name. The urls are proper and there are no plugins. we have multiple sites hosted. If multisite is set to false, login page works fine,but cant see any sites in the dashboard. If multisite is set to true, getting too many redirects issue. The url is being pointed to new-domain-name/wp-signup.php?new=new-domain-name

      if I could fix this too many redirects issue, I should be able to view my sites in dashboard (also I have do search/replace in wordpress database (interconnectit script)

      “Some servers will let you put in a custom .ini file while others do not. I deleted the .ini file since it was not needed in the new server since I set the php files to be all the same for multiple accounts.”

      Did you delete the php.ini file in /etc/php5/apache2/php.ini ?

      Looking for urgent help. Thanks in advance !!

  27. Odinekachukwu Ishicheli says

    Admin, Now I am having issues with my pages. The homepage is the only thing working.

    • WPBeginner Support says

      Login to admin area of your WordPress site. Go to Settings -> Permalinks. Click on the save changes button at the bottom of the page. View your website to see if it worked.

      Admin

  28. Odinekachukwu Ishicheli says

    I can’t thank you enough for this. M site has been giving me the “redirect error” since February and even after deactivating all plugins still had the same issue, until I looked for my .htaccess file from my cPanel and delete.

    Thank you so much for the help, I am stuck now to your site learning all the little tips and tricks after running away from my software engineering classes.

  29. emile says

    hi there,

    i tried all of the above and it still won’t work.

    define(‘WP_HOME’,’http://example.com’);
    define(‘WP_SITEURL’,’http://example.com’);

    with and without the www.

    i tried deleting the .htaccess and deactivating all the plugins and ‘This webpage has a redirect loop’

    ‘ERR_TOO_MANY_REDIRECTS’ is still showing.

    can someone help me?

    thanks

  30. Ernest says

    Hi
    Just wanted to thank you for this. I’ve been struggling with a specific plugin and your recommendations help me fix it.

    I haven’t found a solution for the layman anywhere else.

    Thanks.

  31. Ashish Makwana says

    Hi every body,

    i also have same problem but solution is here:

    1)
    Ref :https://www.wpbeginner.com/wp-tutorials/how-to-fix-error-too-many-redirects-issue-in-wordpress/
    Open wp-config.php and add these two lines
    define(‘WP_HOME’,’http://yourdomain.com’);
    define(‘WP_SITEURL’,’http://yourdomain.com’);
    /*also add below */
    /*Ref :https://tommcfarlin.com/resolving-the-wordpress-multisite-redirect-loop/*/
    define(‘ADMIN_COOKIE_PATH’, ‘/’);
    define(‘COOKIE_DOMAIN’, ”);
    define(‘COOKIEPATH’, ”);
    define(‘SITECOOKIEPATH’, ”);

    /*and in last if you have apply code for canonical url into ,htacces then comment it means disabled it but not remove */
    take backup first .htaccess file then do above change.

    Enjoy your day!!!!!!!!!

  32. Andre says

    OMG! I simply have no words to thank you. I’m about 10 hours trying to fix this issue to install wordpress and I’ve read a thousand blogs and couldn’t fix it.
    Editing config.php with those two first lines solved the problem.
    Thank you very much.
    Succes for you!

  33. WPBeginner Staff says

    No they do not. People usually assume that applying permissions recursively on directories should also affect files inside directory. This is not correct. You can have different permissions for directories and different permissions for files inside the directory.

  34. robrecord says

    Well, I am totally flummoxed. I have one site in a multisite install that only does this SOMETIMES. For example, Earlier today the site was fine and I was loading it up on multiple browsers and multiple machines. I have not touched the config or anything on the backend, and now it’s ‘too many redirects’. This has been going on for weeks. Really need this to be fixed!

    I’ve verified permissions. I’ve verified & reset permalinks settings. I’ve removed cookies. I’ve verified & reverified domain mapping settings. Checked home & site URLs. Checked SEO settings. Reset nginx page cache and WC3 object cache. Disabled browser cache. Disabled all WP plugins.

    It’s only saying ‘too many redirects’ for the home page; I can log in to admin and view other pages.

    I appreciate all help so far… Does anyone have any further suggestions please?

    • Paul Vincent says

      Hi, did you ever find a solution to your issue with the occasional too many redirects issue? I’m experiencing the same problem – it occurs once or twice a day for anonymous users, but anyone signed in is fine, which makes me assume it’s a cache problem, but so far nothing has fixed the issue…

      Thanks,
      Paul

  35. uhhm.net says

    just fyi, anyone trying to solve this issue where other conventional suggestions do not work…

    make sure your owner/group permissions are correct.

    ie, if you manually uploaded wp-admin & wp-includes via your root login, you will need to change folder/file ownership and group to whichever account your wordpress installation is on.

    to change ownership/group from shell:

    chown -R ownername:groupname foldername

    ie:

    chown -R wpaccount:wpaccount wp-admin
    chown -R wpaccount:wpaccount wp-includes

    this applies to cPanel, Linux, Unix installations etc.

  36. WPBeginner Staff says

    First create a backup of your website download all your files and backup your database using phpMyAdmin.

    After that delete your .htaccess file

    Open wp-config.php and add these two lines

    define(‘WP_HOME’,’http://example.com’);
    define(‘WP_SITEURL’,’http://example.com’);

    Replace example.com with your own domain name.

    If you are not seeing error too many redirects issue but seeing white screen. Then try these steps:

    https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-wordpress-white-screen-of-death/

    If this doesn’t help then select your wp-admin folder in FTP client and change file permission to 755. Make sure you check to apply the permissions recursively and apply it to all the directories inside wp-admin. Do not set it for all files resursively, just the directories.

    • robrecord says

      “Make sure you check to apply the permissions recursively and apply it to all the directories inside wp-admin. Do not set it for all files resursively, just the directories.”

      These sentences appear to contradict each other.

  37. R0ckland says

    Thanks for this. Took my some time to get this working but your blog sorted it out for me.

    Cheers.

  38. Pamela says

    Thanks for the information. Based upon what you said, I thought I may have a conflict with an SEO plug-in that I recently installed, but my redirect problem was with one new post. In the settings for the plug-in, I saw that “create autogenerated description” was checked. Since I am writing my own descriptions, I unchecked that (thinking that it may create a conflict). But that didn’t change anything.

    Elsewhere, I read that the redirect error could be caused by changing the post title when the permalink is set to post title. Since I have a new assistant helping me with the blog, I thought maybe this had happened.

    Before unplugging all of the plug-ins, I created a new post, pasted the text from the post with the redirect error, deleted error-prone post, and published the new post. Now it works!

  39. Jason George says

    Thanks for your information. I have also read that this can be caused by a file permissions issue on wordpress folders. The article mentioned verifying that the permissions are set to 644 on all of your wp-admin folders and files. Hope this helps someone out.

  40. Evelyn Guzman says

    I’m glad you’re doing this and you’re doing a great job. I also feel great to be following you because I have 2 big problems with WordPress so I am watching for these. One is on getting a lot of spams and I have Akismet on. Perhaps the problem is that in the comment box, WordPress puts down by default my user name and the clickable word logout instead of getting prospective commenters to login.

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.