¿Sus entradas de WordPress devuelven un error 404 en su sitio web?
Este error se produce cuando puedes acceder al área de administrador y al blog de WordPress, pero cuando intentas abrir una entrada, verás el mensaje “404 No encontrado”.
En este artículo, le mostraremos cómo corregir las entradas de WordPress que devuelven errores 404.
¿Por qué mis entradas de WordPress devuelven un error 404?
Hay varias razones por las que sus entradas de WordPress pueden estar mostrando un error 404 “Página no encontrada”. Estos pueden incluir:
- Conflictos de plugins o temas: A veces, los plugins o temas que has instalado en tu sitio pueden interferir con la forma en que WordPress gestiona los permalinks. Esto puede provocar enlaces rotos y errores 404.
- Problemas de código personalizado: Si has añadido código personalizado a tu sitio web, puede haber errores en el código que estén afectando a los permalinks o causando otros conflictos, dando lugar a errores 404 para tus entradas.
- Problemas con su archivo .htaccess: El archivo .htaccess juega un papel importante en cómo WordPress estructura las URLs. Si este archivo está dañado o no existe, puede provocar errores 404 en las entradas.
Dicho esto, veamos cómo corregir las entradas de WordPress que devuelven errores 404. Puede utilizar los siguientes enlaces para ir directamente a las diferentes soluciones:
¿No quiere corregir los errores 404 usted mismo? ¡WPBeginner Pro Services puede ayudarte! Con nuestro asequible Soporte de Emergencia para WordPress, puedes contratar expertos para corregir errores 404, enlaces rotos, problemas de redireccionamiento y mucho más. Deje de estresarse por los problemas de WordPress y ¡consiga que se corrijan! Programe hoy mismo un servicio de soporte de emergencia para WordPress.
Tutorial en vídeo
Si prefiere instrucciones escritas, siga leyendo.
Método 1: Comprobar si hay conflictos de plugins o temas y problemas de código personalizado
A veces, los plugins, temas o código personalizado que has añadido a tu sitio de WordPress pueden interferir con los enlaces permanentes o causar conflictos, dando lugar a errores 404. Incluso lo hemos experimentado nosotros mismos cuando probamos herramientas en nuestro sitio de demostración.
Una forma de resolver este problema es desactivar temporalmente los plugins. Los plugins a veces pueden alterar la forma en que WordPress gestiona los enlaces.
Una vez que hayas desactivado los plugins, puedes reactivarlos uno a uno mientras compruebas si el error 404 reaparece después de activar cada plugin. Si el error aparece después de activar un plugin específico, ese podría ser el culpable.
A continuación, puede buscar soluciones relacionadas con ese plugin o ponerse en contacto con el desarrollador del plugin para obtener ayuda.
Del mismo modo, su tema de WordPress podría estar causando el conflicto.
Para comprobarlo, puedes cambiar temporalmente a un tema predeterminado de WordPress como Twenty Twenty-Three o Twenty Twenty-Four. Solo tienes que ir a Apariencia “ Temas y hacer clic en “Activar” en un tema predeterminado.
Si el error 404 desaparece con el tema predeterminado, indica un posible conflicto con su tema actual. A continuación, puedes intentar solucionar el problema con el tema o considerar la posibilidad de utilizar un tema diferente.
Puede consultar nuestra selección de expertos de los temas de WordPress más populares para obtener recomendaciones.
Si ha insertado recientemente fragmentos de código en su sitio web, es posible que haya errores en el código que causen los errores 404. Examina detenidamente el código que has añadido y comprueba si puedes identificar algún error.
La forma más segura de añadir fragmentos de código a WordPress es con el plugin WPCode. Este plugin te permite insertar código personalizado sin trabajar directamente con los archivos del tema, lo que reduce el riesgo de romper tu sitio web.
Además, siempre que WPCode detecte un error en tu código, desactivará automáticamente el fragmento y te pedirá que lo compruebes. También puedes utilizar el modo de prueba para comprobar si tu código funciona antes de enviarlo a tu sitio web.
Si ninguna de estas soluciones funciona, pasa al siguiente método en el que solucionaremos los problemas de configuración de tu enlace permanente.
Método 2: Corregir la configuración de Permalink
Las entradas de WordPress pueden devolver errores 404 debido a problemas con las reglas de reescritura en su archivo .htaccess. En la mayoría de los casos, puede corregir el problema actualizando sus ajustes de enlaces permanentes.
Simplemente vaya a Ajustes ” Enlaces permanentes en el administrador de WordPress y haga clic en el botón “Guardar cambios”.
No es necesario realizar cambios en los ajustes de los enlaces permanentes. Esto actualizará los ajustes de enlaces permanentes y eliminará las reglas de reescritura.
En la mayoría de los casos, esta solución corrige el error 404 de las entradas de WordPress. Sin embargo, si no le funciona, probablemente necesite actualizar su archivo .htaccess manualmente.
Método 3: Actualizar el archivo .htaccess de WordPress
Antes de empezar, asegúrese de hacer una copia de seguridad de su archivo .htaccess de WordPress. Si algo va mal, puede restaurar fácilmente el archivo original.
Ahora, tendrá que conectarse a su servidor utilizando un cliente FTP como FileZilla o la aplicación Administrador de Archivos en el escritorio de alojamiento de WordPress.
A continuación, tendrá que encontrar y editar el archivo .htaccess, que se encuentra en la misma ubicación que carpetas como /wp-content/ y /wp-includes/.
Basta con hacer clic con el botón derecho en el archivo y seleccionar “Permisos de archivo”.
Puede hacer que el archivo sea de escritura cambiando sus permisos a 666.
Basta con introducir “666” en la casilla “Valor numérico” y hacer clic en “Aceptar”.
A continuación, debe repetir los pasos del primer método de nuestro tutorial. Una vez hecho esto, no te olvides de cambiar los permisos de nuevo a 660.
También puede editar el archivo y añadirle código.
Una vez que haya abierto el archivo .htaccess con un editor de texto, simplemente inserte este código:
# 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
Método 4: Póngase en contacto con su proveedor de alojamiento
Si ninguna de las soluciones anteriores ha corregido el error 404 de las entradas de WordPress, le recomendamos que se ponga en contacto con su proveedor de alojamiento de WordPress. Es posible que haya un error por su parte o que puedan ayudarte a diagnosticar el problema.
Consulte también nuestra guía sobre cómo solicitar soporte de WordPress correctamente y obtenerlo.
Método 5: Corregir el error 404 de las entradas de WordPress en servidores locales
Si está utilizando un servidor local para realizar pruebas, deberá activar mod_rewrite en la configuración de Apache de su sitio MAMP, WAMP o XAMPP.
Esto permitirá a WordPress generar URLs limpias y evitar el error 404 para entradas y páginas en su servidor local.
La forma de hacerlo dependerá de la plataforma que utilices. Las personas que utilizan XAMPP pueden abrir su panel de control y hacer clic en el botón ‘Config’ dentro de Acciones. Luego, selecciona ‘Apache (httpd.conf)’.
A continuación, tendrá que encontrar esta línea #LoadModule rewrite_module modules/mod_rewrite.so
y quitar el ‘#’ para descomentarla.
Esto cargará el mod_rewrite.
A continuación, busque todas las instancias de AllowOverride None
y cámbielas a AllowOverride All
.
El valor “Todas” significa que se pueden anular todas las directivas.
Una vez hecho esto, puedes guardar el archivo httpd.conf y cerrarlo. Después, en el panel de control de XAMPP, haz clic en ‘Detener’ en el módulo Apache y en ‘Iniciar’ de nuevo para reiniciarlo.
A continuación, vuelva a su panel de administrador para ver si sus enlaces permanentes están trabajando.
Esperamos que este artículo te haya ayudado a resolver el problema de las entradas que devuelven errores 404 en WordPress. Puede que también quieras ver nuestra guía sobre los errores más comunes de WordPress y cómo corregirlos, junto con nuestras selecciones de expertos sobre los mejores plugins de WordPress para hacer crecer tu sitio.
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.
Moinuddin Waheed
This is one of the most occuring error for wordpress websites.
this is really frustrating as it seems to get stuck and leading to nowhere.
I have solved the issue by saving the permalink.
I didn’t know about the other steps.
I really appreciate the efforts to make it holistic by including all the steps to resolve this error.
WPBeginner Support
Glad we could share the other options
Administrador
mohadese esmaeeli
Hello. The 404 error can be really frustrating, and we’ve all encountered it at least once. The situation becomes challenging when everything appears to be correct, there are no broken links, yet the 404 error persists. I faced this issue once, and it was resolved by adjusting the permalink settings.
amir
Hi
in my case, a plugin named as “WebP Express” create a htaccess file in uploads folder that restrict my access to some images.
try rename or remove it and see if the problem still exist.
WPBeginner Support
Thank you for sharing this suggestion to check for multiple htaccess files.
Administrador
Eriab Nsereko
Syed & the team u saved my whole entire day! My homepage was actually loading well.. but the other pages couldn’t load. So, I pasted the code in my .htaccess file and it did absolutely like magic.
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
WPBeginner Support
Glad we could help!
Administrador
David Helleskov Fønsbo
Thanks – None of the suggested solutions did work for me. Looks like the typical permalink error but it isn’t.
Saving permalink again does not create a new .htaccess.
WPBeginner Support
If none of the methods in our guide are working for you, please reach out to your hosting provider and they should be able to help fix the issue.
Administrador
Victor
The updating permalinks fix worked. Fastest solution ever. Thank you for writing this piece
WPBeginner Support
You’re welcome, glad our guide was helpful!
Administrador
Julie
Thank you for the quick fix! Appreciate the help.
WPBeginner Support
You’re welcome, glad our guide could help you!
Administrador
Frank Thomas
Thank you for this post. I was missing the .htaccess files after moving sites and of course the wordpress code in them. I’ve replaced it all and voila! We are live at 5. Thanks.
WPBeginner Support
You’re welcome, glad to hear the guide helped!
Administrador
anand
i have try to your guideline but not working my website again showing same error 404
WPBeginner Support
If none of the recommendations from our guide could solve your error, please reach out to your hosting provider and they should be able to take a look and help!
Administrador
Harald
Hi,
saving permalink helped me too, but it keeps returning over and over again after some days.
I have no clue what causes it.
WPBeginner Support
If it is a constantly recurring error, we would recommend reaching out to your hosting provider and they can either look at their error logs for the site or keep an eye on your site for the specific error causing the problem.
Administrador
Mete
Thank you very much.solved my problem
WPBeginner Support
Glad our guide was helpful!
Administrador
Emmanuel
This is my lifesaver. My site is working fine after modifying the .htaccess files.
Thanks a ton!
WPBeginner Support
Glad our guide could help!
Administrador
Jon
For me the problem was I forced a redirect from mydomain.com to ww.mydomain.com, but in wordpress the site URL said mydomain.com. After changing the redirection to ww.mydomain.com -> mydomain.com everything worked.
WPBeginner Support
Thanks for sharing this for those who may also have this issue!
Administrador
Mario Nwolisah
Thank you! It worked. I really appreciate.
WPBeginner Support
Glad our article was helpful!
Administrador
Jess
Thank you – this saved me!
WPBeginner Support
Happy to hear our guide could help!
Administrador
Cristian
Thank you, it works for me!!!
WPBeginner Support
Glad our recommendations were able to assist!
Administrador
Samir K Al Busaidy
I was panicking and thinking that my website was hacked or had malware. As I read your writing and you wrote not to worry, I began to relax. The first option (permalink) worked for me immediately…
Thanks
WPBeginner Support
Glad our guide was able to help
Administrador
Udaykumar Posia
This worked. Thank you so much.
WPBeginner Support
Glad our guide could help
Administrador
Max Legault
On IIS there is no .htaccess file but the key is still the permalink settings. Just hitting Save didn’t fix it but changing the Custom Structure to Plain worked like a charm. Thanks for the push in the right direction.
WPBeginner Support
Glad you were able to find the solution for your issue
Administrador
Collin
I love you for this! This was an easy fix. I was in full panic mode!
WPBeginner Support
Glad our guide was able to help
Administrador
Zack
Thank you so much. It worked!
WPBeginner Support
Glad our guide was helpful
Administrador
Steve Barnard
Dang! Can’t thank you enough for this – super simple fix worked perfectly – just hit save changes on the permalinks settings page and viola’ – my pages are back. Thank you!!
WPBeginner Support
Glad our guide could help
Administrador
A.S.M. Arifur Rahman
Thanks a lot, settings saved method works, Now my post open fine.
kris
honestly thank you so much! without fail your site always comes thru with answers that work. thank you so much!
(now I just wish I knew what caused it to get out of whack in the first place. oh well.)
Chris
This article just saved me from a panic attack Lol. The solution worked great. Thanks for making this video.
Muhammad Tahir
i didn’t solve this issue by using all the methods that you are discussed?
WPBeginner Support
If none of our methods in this guide worked for you, we would recommend reaching out to the support for your hosting provider to ensure there is not an error on their end.
Administrador
Duane Wiese
None of the above suggestions worked so I did some further searching. I came across someone who suggested switching off the mod security under the security section in cpanel.
I tried this and it worked. I also tested it by switching it back on after a change and then trying another change and BAM, 404 error.
WPBeginner Support
Thanks for sharing this should someone else run into this issue. Not every host allows access to that specific file but if you reach out to your host they can normally disable or change it for you
Administrador
Dave Emma
Disabling ModSecurity fixed mine.
I actually tried permalinks plus rewriting .htaccess, but that didn’t solve my problem. I’m glad I read comments. Many thanks guys for sharing.
Elango
Thanks, it was so simple and the problem solved. No other pages were visible after I migrated to another server. I added the lines to .htaccess file and uploaded the same. Now all the pages are being displays without the 404 error and I am able to access my WP dashboard too. Thanks a lot.
WPBeginner Support
Glad our guide was able to help
Administrador
Islombek
My posts are showing 404 error after installing ssl certificate. How can I fix it? I tried everything mentioned above, but none helped.
WPBeginner Support
If you are changing your site’s URL to HTTPS you would want to follow our guide below:
https://www.wpbeginner.com/wp-tutorials/how-to-add-ssl-and-https-in-wordpress/
Administrador
Dennis Yildirim
My .htaccess file is exactly the same with that code but nevertheless I did whatever in the post. did not work, saved permalinks through admin console, did not work. Manually edits, no luck. Deleted the .htaccess and recreated it by saving it from admin console, again did not work. Nothing works. Don’t know how did it even work on others?
WPBeginner Support
If none of the recommendations from our article were able to help we would recommend reaching out to your hosting provider as that can be a sign that there is an issue on your host’s end.
Administrador
Kuldeep Singh
You saved my day. I got this issue after transferring my site from one hosting to another. I couldn’t believe it was so simple to fix the issue. Many Thanks WpBeginner team!
WPBeginner Support
Glad our guide was helpful
Administrador
Rick
I never reply to these things but just wanted to jump on here and say thank you! I’ve been having this issue a lot and having to wait ages for support to help me and so finally had a hunt around, found this, and can now fix it myself. You legend!! Much appreciated
WPBeginner Support
Glad our guide was helpful
Administrador
Elroy
Thanks a lot Wpbeginner it woked just fine.
WPBeginner Support
Glad our guide was helpful
Administrador
Noble
Thank you very much, it worked instantaneously!
WPBeginner Support
Glad our guide could help
Administrador
carol hannah
Help! It didn’t work and I can’t possibly work out how to do the .htaccessfile thingy?
WPBeginner Support
You would either need to use FTP which we cover on the page below:
https://www.wpbeginner.com/glossary/ftp/
Or reach out to your hosting provider and they would be able to assist.
Administrador
Christopher Krohn
Thank you, thank you, thank you!
WPBeginner Support
Glad our guide was helpful
Administrador
Dan
Man this fixed my WP site! THANK YOU!
WPBeginner Support
Glad our guide was helpful
Administrador
Molly
Thank you for a million time!!!!!
WPBeginner Support
Glad our guide was helpful
Administrador
Amin Omer
Thank you very much
WPBeginner Support
You’re welcome
Administrador
Afan
One of solutions to correct the issue with the Permalink change is simply delete the .htaccess file – Wordpress will recreate it again automatically.
But, before you delete it, copy the file on your computer, just in case…
WPBeginner Support
If someone has customized their htaccess file then that would be a good idea. Otherwise, WordPress should auto regenerate the default information in the file where most wouldn’t need to worry.
Administrador
James Monroe
Saving the permalinks settings worked perfectly. Such a simple solution to what looked like a serious problem! Thank you!
WPBeginner Support
Glad our recommendation was helpful
Administrador
mukhtar
its works fine 100 %
and easy to solve my problem, we are very very thankful to you about it
WPBeginner Support
Glad our guide was helpful
Administrador
Sarah
Wow!! I’ve spent all evening trying to fix this and that’s how easy it was! THANK YOU!!
WPBeginner Support
Glad our guide was helpful
Administrador
Rimzan farook
Thanks fixed it as you described changed my post date to post name, thanks a ton
WPBeginner Support
Glad our recommendations could help
Administrador
Muhammad Zeeshan
I’m facing 404 error while adding new plugin , theme , editing any post or product, editing any page ..
I’ve try to save permalinks and also tried to change .htaccess .. But not this given solution is working for me.
WPBeginner Support
You would want to reach out to your hosting provider to see if you are running into any errors on their server’s end.
Administrador
Ayobami
I’m having error 404 issues on my website, I can’t access to the website at all what can I do?
WPBeginner Support
You would use the htaccess method from this guide or reach out to your hosting provider to be able to assist you
Administrador
samith
I can’t login my WP dashboard seen “nginx 404 not found error”
WPBeginner Support
For that specific error, you would want to reach out to your hosting provider to take a look.
Administrador
Sammy
A BIG Thank You… It solved the headache!
WPBeginner Support
Glad our guide was helpful
Administrador
Mihir
I’m facing a problem where this is extension of my own website after every page and I don’t know how to fix it.
WPBeginner Support
You would likely want to check under Settings>Permalinks to ensure everything is set correctly there
Administrador
Daniel
Thank you,
It solved my problem!
WPBeginner Support
Glad our guide was helpful
Administrador