El problema ‘Error too many redirects’ es un error de WordPress que puede estar causado por un plugin o por ajustes incorrectos. De hecho, es uno de los errores más comunes entre nuestros lectores y otros usuarios de WordPress.
Este error puede incluso bloquear su sitio web, por lo que es un poco difícil de corregir. Por suerte, hemos diagnosticado el problema de demasiadas redirecciones varias veces, así que sabemos exactamente qué hacer.
En este artículo, le mostraremos cómo corregir fácilmente el problema ‘Error demasiadas redirecciones’ en WordPress. También veremos cómo recuperar el acceso a tu sitio web y diagnosticar el error.
Consejo de experto: ¿Prefiere dejar que los profesionales se encarguen de diagnosticar los problemas? Nuestros servicios de soporte de WordPress pueden corregir tu error en un abrir y cerrar de ojos y hacer que tu sitio vuelva a funcionar. Además, ofrecemos correcciones puntuales, por lo que no tendrás que preocuparte por contratos en vigor.
¿Cuál es la causa del problema “Demasiadas redirecciones de error” en WordPress?
‘Error too many redirects’ está causado por un problema / conflicto / incidencia de redirección mal configurada en WordPress.
Como ya sabrás, WordPress tiene una característica de estructura de URL SEO-friendly que utiliza la función de redirección. Del mismo modo, muchos plugins populares de WordPress utilizan esta característica para establecer redirecciones temporales, crear redirecciones 301 permanentes y corregir errores 404.
Si está utilizando un plugin para corregir el problema de contenido inseguro SSL o un plugin de caché de WordPress, entonces también puede afectar a las redirecciones y causar el error ‘demasiadas redirecciones’.
Este es el aspecto del mensaje “ERR_TOO_MANY_REDIRECTS” en Google Chrome.
Sin embargo, este error no le indica qué está causando el conflicto y forzando el bucle de redirección en WordPress.
Así es como se ve el error en Firefox con el mensaje ‘La página no está redirigiendo correctamente’.
Dicho esto, echemos un vistazo a cómo corregir el problema de demasiadas redirecciones en WordPress.
Le guiaremos paso a paso para diagnosticar el error, obtener acceso a su sitio de WordPress y evitar que vuelva a producirse.
Tutorial en vídeo
Si prefiere instrucciones escritas, siga leyendo.
1. Vaciar cookies y caché del navegador
Una causa común del error podrían ser las cookies de su navegador / explorador web. Prueba a acceder a tu sitio web con otro navegador / explorador, como Firefox, Safari, Opera o Microsoft Edge.
Si puede acceder a su sitio web con normalidad utilizando otro navegador, deberá vaciar las cookies y la memoria caché de su navegador habitual.
Tenemos una guía detallada sobre cómo vaciar la caché de tu navegador / explorador en los principales navegadores que te ayudará a hacerlo.
Por otra parte, si el cambio de navegador no corrige el problema, puede pasar al siguiente paso.
2. Desactivar todos los plugins de WordPress
La causa más común de los bucles de redirección de WordPress o ‘ERR_TOO_MANY_REDIRECTS’ es un conflicto de plugins. Un plugin de WordPress tratando de establecer una redirección de una manera que entre en conflicto con las redirecciones por defecto de WordPress puede causar este mensaje de error.
Para corregir esto, es necesario desactivar todos los plugins de WordPress en su sitio web. Normalmente, basta con ir a la página Plugins ” Todos los plugins en el área de administrador de WordPress y desactivar los plugins desde allí.
Sin embargo, suponemos que debido al error de redirección, es posible que no se haya podido acceder al área de administrador de WordPress.
En ese caso, tendrá que desactivar los plugins de WordPress utilizando un cliente FTP como FileZilla o la aplicación Administrador de archivos de su panel de control de alojamiento de WordPress.
Simplemente conéctese a su sitio web utilizando un cliente FTP y vaya a la carpeta /wp-content/
.
Allí encontrará la carpeta plugins
, que deberá renombrar a ‘plugins.deactivate’.
Esto desactivará todos los plugins de WordPress de su sitio.
Básicamente, WordPress busca una carpeta llamada plugins
para cargar los archivos de los plugins. Cuando no encuentra la carpeta, automáticamente desactiva los plugins activos en la base de datos.
Ahora, puede intentar visitar su sitio web de WordPress. Si ahora puede acceder al área de administrador de WordPress, significa que uno de los plugins estaba causando el error.
Para averiguar qué plugin es el culpable, tienes que volver al cliente FTP o a la aplicación de gestión de archivos y cambiar el nombre de la carpeta plugins.deactivate
a ‘plugins’.
Después de eso, cambie al área de administrador de WordPress de su sitio web y vaya a la página Plugins ” Todos los plugins. Desde aquí, puedes activar tus plugins uno a uno y luego visitar tu sitio web para ver si puedes reproducir el error.
Una vez que encuentre el plugin que está causando el error, puede encontrar una alternativa a ese plugin o informar del problema en el foro de soporte de WordPress del plugin.
3. Corrección de URL de WordPress
Otra causa importante de este error es una mala configuración en los ajustes de URL de WordPress. Normalmente, puede ver estas opciones en la página Ajustes ” General.
En la mayoría de los sitios web, las URL de los campos Dirección de WordPress y Dirección del sitio deben ser iguales. Sin embargo, algunos usuarios pueden acabar utilizando ‘www’ en una URL y una URL que no sea www en la otra.
Dado que es posible que no tenga acceso al área de administrador de WordPress, es posible que tenga que corregir las URL de WordPress utilizando un cliente FTP o la aplicación Administrador de archivos.
Simplemente conéctese a su sitio WordPress utilizando un cliente FTP y vaya a /wp-content/themes/your-theme-folder/
.
A partir de aquí, tienes que encontrar el archivo functions.php y editarlo usando un editor de texto plano como Notepad o TextEdit.
A continuación, tienes que añadir el siguiente código en la parte inferior:
update_option( 'siteurl', 'https://example.com' );
update_option( 'home', 'https://example.com' );
No olvide sustituir “https://example.com” por las URL de su sitio. Ahora puede guardar los cambios y volver a subir el archivo a su sitio web.
Después de eso, intente visitar su sitio web para ver si esto resuelve el error.
Para más métodos, consulte nuestro tutorial sobre cómo cambiar fácilmente las URL de WordPress.
4. Restablecer el archivo .htaccess de WordPress
El archivo .htaccess es un archivo especial que utiliza el servidor del sitio web para gestionar las redirecciones y otros ajustes del servidor. WordPress también utiliza este archivo para las URL SEO-friendly y otras redirecciones.
A veces, los plugins de WordPress pueden realizar cambios en el archivo .htaccess de su sitio web, lo que puede desencadenar este error. También es posible que la desactivación de un plugin no quite esos cambios de su archivo .htaccess.
En ese caso, tendrá que restablecer manualmente su archivo .htaccess de WordPress.
Una vez más, tendrá que acceder a su sitio web mediante un cliente FTP o la aplicación Administrador de archivos del panel de control de su alojamiento. Una vez conectado, verá el archivo .htaccess en la carpeta raíz de su sitio web.
Nota: Si no puede encontrar su archivo .htaccess, consulte nuestra guía sobre cómo encontrar el archivo .htaccess en WordPress.
En primer lugar, debe descargar una copia de su archivo .htaccess a su ordenador como copia de seguridad. Después de eso, usted puede seguir adelante y borrar el archivo de su sitio web.
Ahora puede intentar visitar su blog de WordPress. Si todo funciona con normalidad, significa que su archivo .htaccess estaba causando el error de redirección.
Ahora, como hemos borrado el archivo .htaccess, tendrá que volver a crearlo. Normalmente, tu sitio web WordPress puede hacerlo por sí mismo. Para asegurarte, sólo tienes que ir a la página de Ajustes ” Enlaces permanentes y hacer clic en el botón “Guardar cambios” en la parte inferior.
5. Prevención de errores demasiados redireccionamientos en WordPress
Esperamos que los pasos que acabamos de dar hayan corregido el problema / conflicto / incidencia en su sitio web. Si no se corrigió el problema, entonces es posible que tenga que hablar con su empresa de alojamiento de WordPress para asegurarse de que no hay un problema de servidor.
Una vez corregido el problema en su sitio, también debería poder averiguar la causa.
Si se trata de un plugin, debes informar de la incidencia en el foro de soporte del plugin. Consulte nuestra guía sobre cómo solicitar soporte de WordPress. Sin embargo, si no se ha podido obtener ayuda, siempre se puede encontrar un plugin alternativo que haga lo mismo.
Si el error fue causado por una mala configuración del sitio de WordPress, entonces puede tomar nota de ello y asegurarse de que los ajustes de su sitio están correctamente establecidos.
Para obtener más consejos, consulte nuestro tutorial detallado sobre cómo diagnosticar problemas de WordPress por su cuenta como un profesional.
Esperamos que este artículo te haya ayudado a resolver el problema / conflicto / incidencia ‘error too many redirects’ en tu sitio web. También puede marcar como favorito nuestro manual definitivo de errores comunes de WordPress y ver cómo ponerse en contacto con el soporte de WordPress.
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.
David Najman
Hi,
I had this error on the product tag page. I tried all the possible repairs mantioned above with no luck.
Finally, I had to rename slug for tags not to be numbers, eg. 2016, so I renamed it to r2016 and it started to work!
It must have been caused by some wordpress update, because it have been working few years before with tags named as numbers.
WPBeginner Support
Thanks for sharing what worked for you, if your product page is created by a plugin you may want to try reaching out to the plugin’s support to let them know about that issue
Administrador
Yavan Kumar
Hi,
My whole website is running properly, but the homepage is redirected too many times and same issue with the wp-admin page too. I tried all the methods you mentioned but nothing worked for me.
Please advice me if there is any another solution for that.
Thanks in advance…
WPBeginner Support
If none of the methods from the article worked, you would want to reach out to your hosting provider for them to see if there are any issues they can see on their end.
Administrador
John Zoetebier
My web site is a Bitnami Wordpress deployment on Google Cloud Platform.
When I use:
define(‘WP_SITEURL’, ‘http:/example.cloud’);
the home page gets redirected to itself and browsers error message.
I now use the original Bitnami setting and it works great !
define(‘WP_SITEURL’, ‘http://’ . $_SERVER[‘HTTP_HOST’] . ‘/’);
WPBeginner Support
You are missing a slash next to your http in the first define statement but thank you for sharing your workaround.
Administrador
Chad
I had to desactivate a plugin and it worked back fine. I identified the plugin to desactivate by looking into my URL where I was getting a redirect error. The plugin name was written there.
WPBeginner Support
Thanks for sharing how you found the error for others trying to solve this problem
Administrador
Nirav Patel
Thanks you bro for information of wp error
WPBeginner Support
Glad our article could help
Administrador
irga
yeah, you know,,, i searching for it,,,,, and then mys wordpress site working again, thanksfull
Rahul
Thans buddy , really helps
Josh
I’ve tried all the steps here with no luck today. Luckily my website is functioning ok but I can’t log into the wp-admin dashboard for anything.
What are the other options? There must be other ways I can figure out what’s causing it?
Deby
I’m having the same. My site works fine for visitors, but I only get the redirect error for the backend, my WP dashboard.
It’s a new site and I don’t even have any plugins installed yet. I’m stumped.
Bryant Thomas
Holy Cow That worked, I’ve done many websites migrations and never ran into this issue. Thank you the define(‘WP_HOME’,’http://example.com’);
define(‘WP_SITEURL’,’http://example.com’); worked with the www.
Rutvi Trivedi
Hi, My problem is when I go to my site’s dashboard(/wp-admin) it is giving me this error I tried this solution and unfortunately it is not working. Please help me to solve this error.
Shakeane
I just want to say thank you so much for sharing this knowledge, you wouldn’t understand how much this has helped me, something as minor is adding www or leaving the forward slash at the end has caused so many headaches, thank you so much.
Marc
Awesome! Only took 5 minutes and fixed!!!
hassan
dear sir,
i have huge data on my website i change my address directly from http://www.example.com to example.com i remove www from wp-confiq and phpmyadmin without doing the above procedure, now i update all the plugin and theme everything is fine but my theme setting is not editing when i am going to change setting of my theme the changes reverting …please help how to solve this problem i will be thankful to you
i am trying to solve this problem from three days but fail
please help
Sachin
Hi, my website is running without any error but i have this issue in backend when i open appearance>customize tab. I am unable to customize my website from backend. How can i solve it?
Adrian Daniels
Wow, this actually worked, thanks!!
Toheeb
Hi!
Thank you for your post…
I was able to solve mine changing the WP_SITEURL and WP_HOME to lowercase letters. I capitalized each word formerly for readability and as it turned out, it redirects post paginated pages.
Everything seems fine now. Thank You
Laurena
Hey, this was my problem! Thanks for your comment here.
scott
This was my problem as well.
Karla
This was my problem too! Thanks for your comment! I tried everything in the video but nothing worked.
Rudy Reteig
I made a redirect in ADDOn Domain to rid my site of a tail, “/blog”, behind my URL, appeared when launched the site. This was in my opinion automatically done, as I have two sites on the same PUBLIC_html directory. probably to avoid conflict of files with the same name of the two sites
Robin
None of these fixes worked for me. In the end it turns out I had setup a custom page rule in CloudFlare a long time ago to treat the wordpress dashboard different to the rest of the site. It had “SSL – Flexible” set which causes the error. I just set the rule to “Full” and it works fine again.
Ada
This was the fix for me. Thank you so much!
Damien
Oh God! Thank you so much
Daniel
Thanks a lot for this fix, after like 5 hours on this error, finally solved the issue. I spend more time on fixing errors than building website with wordpress. I’m tired
Simon
Thanks bro. Hours of checking .htaccess etc and its just a simple cloudflare problem.
Rares
This was the solution for me too. Thank you so much for sharing!
Jack
This fixed mine! Thanks!
Jeenie
Same here – once “Flexible” was changed to “Full” in the Cloudflare SSL settings, it worked! Phew. (Wish I saw your comment sooner!)
Nancy
Thank you soooooo much for this! It worked.
Florian
I also had the problem, so I started searching for a solution and found out that the CDN was causing that error. I switched it off and it worked again
Jennifer
Thank God I saw your reply. I thought because I had added the Yoast SEO plugin, it was causing the issues, but I had also activated CDN in my control panel and that was the problem!
Alex Jr
I deactivated all plugins, disabled the current theme, deleted .htaccess, but I’m still getting the “too many redirects” error when I try to access my wordpress site. What is causing it and how can I fix it?
Dan
Just had this happen to me on a new site I’m working on. The issue turned out that I created my child theme with spaces in the name. As soon as I renamed the child theme folder to my-child-theme it worked. I did have to go and make my child theme active again to make it work right. Hope this saves someone so grief and aggravation!
ANA
Dan, I just wanted to say THANK YOU!!!!!!!
That was my problem too, apparently. I changed the name and folder to include a dash and everything works fine.
Santiago
I’m finding that when I try to set my Permalink to Post Name I get the redirect issue. When I set it to Plain, no issues. I’ve disabled all the plugins and still the same thing.
I’m new to WP but 20+ years IT, any help would be greatly appreciated.
Damion
+1 on this and thank for for so thoroughly and generously sharing your knowledge – you saved me hours of work today.
Bilal Asghar
This is a really helpful article. I had the redirection issues with my WordPress website. I just changed my Post URLS going to Setting>Permalinks.
Ebad Ur Rehman
My site is redirected too many time in the preview of customization
other functions of theme are working fine.
please tell the solution for the problem
Sharon Booker
Thank you so much. I called my hosting service help desk twice and nothing they told me to do helped. This fixed the error.
Amit Khandelwal
I’m getting “ERR_TOO_MANY_REDIRECTS” problem only on website Home page but other pages working fine. I think plugin “Redirection” create this problem but it’s my need to keep activate this.
Please suggest.
Tenzin Nima
Thank you so much!! I have been looking for solution for whole day and finally solved it.
Thank you
maria
ive tried the first option, Settings » General and changed the url. the thing is, i accidentally put a ; instead of a . on the adress.
Now the site is all messed up and i cant even login on the admin user anymore, to change it back :/ any tips?
WPBeginner Support
Hi Maria,
You can fix this by adding this code to your WordPress site’s wp-config.php file.
1-click Use in WordPress
Don’t forget to replace example.com with your own domain name.
Administrador
Yildirim
hi,
what about https
WPBeginner Support
The code is example code, if you are using https then you would put https in the code
Em Walker
Hi, Every time I go to the WIDGET page to load my adsense ads then my page freezes up and becomes unresponsive, how can I fix this, please
Mark
Thank you that worked
Abiskar Bharati
I tried all the things mentioned in the blog but issue still persisted so I did what Jake Philips(one of the comment above) did and I found that something had changed the permalink structure setting to:
/’/%year%/%monthnum%/%day%/%postname%/’
I changed it back to (as the comment suggests) :
/%year%/%monthnum%/%day%/%postname%/
and then everything was working fine again…
Abhishekh Maharjan
Thank You. It worked
Cindy
When I put my link on Facebook my photo that’s on my webpage does not come up just my website name and URL. Any idea what I need to do to have a thumbnail photo?
Felix
Hi, CINDY.
That’s because you didn’t use Yoast plugin, and didn’t set the rules on Facebook tab. The issue is related to open graph protocol.
Khori Carnes
Hi. I am having a some what odd issue, i feel. My redirect issue is that when i attempt to access my wordpress admin page using my domain, it redirects me to godaddy.com. my only explanation I can come up with is that i purchased my domain name from godaddy. However i purchased my web hosting from hostgator. Regardless, i can not access my admin page for wordpress to begin establishing my new website.
Any and all help or suggestions would be greatly appreciated! Thanks
WPBeginner Support
Hi Khori,
You can contact GoDaddy support and they can help you point out your domain name to your hosting provider. All you need to do is go to your GoDaddy account and point Name Server settings for your domain name to HostGator.
Administrador
Ralf
In my case the problem was special characters in the URL. You can’t have those with wordpress. E.g. German umlauts: ÄÖÜ – need to be converted.
Teemu
Yes and no. I succesfully ran a website with “ä” character in there for a few years. But this time this might be the reason why I’m searching help to this problem here with a website that now has the same “ä” character there also…
Don Stewart
I panicked when I could not access my website home screen (though I could the other pages). I messed around with the Settings=>General URL settings, and I saw that the same address appeared as the Wordpress URL and the website URL—which meant it was going around in circles, as you pointed out. I fiddled with that for awhile, almost locking myself out of Wordpress altogether, but then deactivated several recently installed plugins. Fixed! I’m not sure which plugin caused it—I will investigate that, by omitting the one I think is most likely and one-by-one reactivating the others, but my suggestion is to follow your article from the bottom up. Check out those recent plugins!
Jake Phillips
I had just enabled CDN and SSL in Bluehost for my WordPress site when this started happening. I found that something had changed the permalink structure setting to:
/’/%year%/%monthnum%/%day%/%postname%/’
I changed it back to:
/%year%/%monthnum%/%day%/%postname%/
and then everything was working fine again…
Asma
Hi,
Your article is really good and may be a solution of my recent problem. But I am not a WordPress expert and not enough brave to experiment with my site, though the blog is completely built by myself.
However, I’m seeing the following things from last two days–
“This page isn’t working
m redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS”
I’ve tried many times after clearing cookies, still, I can’t log into my site.
Can you please give a solution?
WPBeginner Support
Hi Asma,
If you have tried steps mentioned above, then you can try our WordPress troubleshooting guide. It will help you figure out what’s causing the issue and how to fix it.
Administrador
Adeshola
My problem seemed to be a mixture of plugins and wp-config.php. After deactivating my plugins, I was able to access my site but not my wp-admin area. I fixed this by updating my wp-config with the codes provided above. However, they worked only after I put them before the “/* That’s all, stop editing! Happy blogging. */” line. This was something you guys didn’t include in your tutorial but I found somewhere else. So thanks for everything. My site works now.
George
Just wanted to say this article helped me a great deal… Here’s my case:
WP installed in a directory: domain.com/widget
domain.com .htaccess edited for SEO purposes to say
DirectoryIndex /widget/index.php /widget/
This caused the “too many redirects” issue. Possibly because of the trailing slash in the domain.com .htaccess file??
Anyway, this fixed it:
domain.com .htaccess edited to:
DirectoryIndex /widget
Now it works.
Huzzay for cPanel!!!
Mirjam
My issue is that trying to access the login page keeps giving me a redirect to https:// but my site is in http://. Have tried everything, adding home url to config.php, disabling plugins, renewing .htaccess. There is no redirect defined in CPanel so I’m lost as to why this is happening. The site is available, but I cannot access admin.
Getting a bit hopeless here…
WPBeginner Support
Please contact your WordPress hosting provider, they may be able to help you out.
Administrador
Gilbert Stawny
If none of the above works, rename your .htaccess file to htaccess.old or something. Try to log in again.
Talha Wahid
Thanks a lot, Finally i solve it by spending whole week. only adding to the wp-config.com
define(‘WP_HOME’,’http://example.com’);
define(‘WP_SITEURL’,’http://example.com’);
Adrian
One way that you can create the infinite redirect loop is to set WordPress Address and Site Address using camel case, MyExampleWebsite.com for example . The domain part of a URI is supposed to be case-insensitive, the file part has to be case sensitive to cope with case-sensitive file systems. WordPress breaks if you use camel-case.
Adnane
I had the same problem, solved it by going to cpanel then look in the security tab if there is mod security , if yes deactivate it.
That was it for me.
Howard Bussey
Thank you for writing this. I set up redirection with Easy HTTPS Redirection, and ran into the “too many redirections” problem. I solved it by turning off a property in Woo Commerce. In the checkout settings, I had both “force secure checkout” and “force HTTP when leaving the checkout” selected. I unselected the “force HTTP when leaving the checkout”, and no longer see the “too many redirections” problem. I didn’t have to edit any .htaccess file.
Asser
If the issue is happening only when accessing the admin control panel , then look at the wp-admin and check if there is htaccess file in place (www/wp-admin/.htaccess ) and if you find one then rename it and refresh the admin URL (example.com/wp-admin/) and it should work .
Suraj
Simply superb, this resolved the redirect loop issue I was facing, thanks a lot, appreciate the article
Akash Gadiya
Hi, I’ve tried all the troubleshooting options here but nothing seems to work. The last thing I remember doing was to take a full backup using the Backup Wizard on the cPanel. Could that in any way lead to this error (Too many redirects)
Here’s a list of what I’ve done so far to fix this issue:
1) Removed the backup file from the root directory
2) Edited the wp-config file by adding those 2 lines of code, both with and without www
3) Deleted the .htaccess files from the root directory and wp-content folder one at a time
4) Scanned through all the comments to see if there is any possible solution, to no avail
I have sought for the help of the root admin, hopefully we’d be able to fix this ASAP. If you think I’ve missed out on anything or could try anything apart from these, please do let me know.
Thanks
Akash
Akash Gadiy
I could finally fix the problem. It had something to do with the backend I guess. My admin reset the server and that breathed life into my website again. Thanks for this post though. Good luck to all trying to fix this problem. May the force be with you