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

Cómo corregir entradas de WordPress que devuelven el error 404 (paso a paso)

¿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.

How to fix WordPress posts returning 404 error

¿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

Subscribe to WPBeginner

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.

Activating a default WordPress theme

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.

WPCode error warning

Si ninguna de estas soluciones funciona, pasa al siguiente método en el que solucionaremos los problemas de configuración de tu enlace permanente.

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”.

Check Permalinks

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”.

.htaccess file permissions

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”.

Change file attributes for the .htaccess file to 666

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.

Edit .htaccess file

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)’.

The Apache (httpd.conf) menu on XAMPP

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.

Finding the rewrite_module on httpd.conf file

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.

Changing AllowOverride None to AllowOverride All

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.

Descargo: Nuestro contenido está apoyado por los lectores. Esto significa que si hace clic en algunos de nuestros enlaces, podemos ganar una comisión. Vea cómo se financia WPBeginner , por qué es importante, y cómo puede apoyarnos. Aquí está nuestro proceso editorial .

Avatar

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.

El último kit de herramientas de WordPress

Obtenga acceso GRATUITO a nuestro kit de herramientas - una colección de productos y recursos relacionados con WordPress que todo profesional debería tener!

Reader Interactions

768 comentariosDeja una respuesta

  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. taher says

    My problem is a little different i do have access to my wp-admin, But i am unable to access to any page within wordpress, including dashboard or settings and re-directed to 404-error page. I have disabled cloudfare, but the problem persists.

  3. Oswaldo says

    Thanks for this amazing solution. I have a membership site and when i looked up to my mail this morning i have a lot of users that wrote that the cant access to the page because is showing the 404 error message and in fact this was happening, i didint know what to do, i thought it was some plugin or some function i put the night before….

    Then i found this post, i saved again the permalinks as shown in this post and WORKED!!! :)

    but i am not happy yet, i want to know why happened this problem? so this wont repeat again :( because all night while i was sleeping this problem happened :(

    please can you tell us, why happened this problem, so we can avoid this?

    Thank you

    • WPBeginner Support says

      Sadly, it is difficult to say the root cause. It could have been an update from the host’s end or something on your site could have updated your permalinks incorrectly as some possibilities.

      Administrador

  4. Lina Jin says

    I checked .htaccess and permalink settings too but its still not working.
    In pages, I can see only some pages and others show errors.
    ‘Trying to get property ‘post_author of non-object in C:\xampp\htdocs\aaa\wp-admin\incldues\class-wp-posts-list-table.php on lline 1180’

    So the page links are not working and after login, the homepage is automatically redirected to wp-admin and dashboard shows nothing.
    Can you help me with this?

  5. kaleab says

    i had the same problem geting 404 error in post.php …it was frustrating but the only thing worked form me was change the the theme..and change it again…it worked for me………..

  6. José says

    None of the solutions worked for me. I can only acces to my home page, any other link like pages & post are not working. The update that caused this was the 5.0.3

  7. Nikki S says

    Wheew! This DID work for me. All I had to do was hit the Save button. So thankful for the article.

    I just updated to WP 5.0.2 yesterday from 4.9.8. Could that have been the cause? It seems to run fine yesterday.

    • WPBeginner Support says

      As with any technology, there are many possible reasons. It could have been the update, a hiccup with the host, or another unknown reason.

      Administrador

  8. Anjalai says

    am working in wordpress admin suddendly it showing 404 error message. so what am to do and i am beginner for wordpress

    • WPBeginner Support says

      You would want to follow the steps in this article and should none of them work, reach out to your hosting provider and they should be able to assist.

      Administrador

  9. Daniel S says

    I have tried all the suggestions from the article and some from comments.
    Then I contacted my hosting company and it turned up that their ModSecurity module on the server blocked POST requests with “+src=” string in it.
    It could be different rule for you but if everything else fails try asking your hosting company to check if any request was blocked at the server level.

  10. zak says

    thank you so much you are amazing, i love you so much, you are great, i searched a lot of pages and no one knows and teaches like you. you are awesome.
    Thank you Thank you Thank you

  11. jay says

    this is happening to our site almost monthly and the only way to fix is to reset the permalinks in wp dashboard. debug log file is clean so i dont have any clue where to start fixing. any one having the same problem?

  12. Toyin says

    My issue has to do with the next page. I reduced the number of posts showing on my home page from 10 to 5, and when I click on the next page, it’s coming up with the 404 page not found

  13. Aram says

    Hello! Thank You for interesting article! I have a little different problem. I want to redirect my 404 page to another, accurate and beautiful page. And normaly use plugins or template possibilities for that. But one of my sites, where there is the same template that I usually work with, the 404 page does not exist at all. Whatever I do. I get error telling that The requested document was not found on this server.

  14. Okereke Divine says

    This article is actually very very helpful.

    But my problem seems to be different. Please WPBEGINNER, you guys should please and please help me…

    I have tried the methods above but its not working. though my problem is kindoff different.

    My problem is:
    Sometimes, When I try to update my previous post or make a new post.., it redirects me to “404 error. Please and please help me.

    • WPBeginner Support says

      Hi Okereke,

      Please try these steps. Go to Settings > Writing page and under the update services section delete any URLs in the box (Normally you will only see one URL rpc.pingomatic.com). Now click on the Save changes button to store your settings.

      Try editing a post to see if this resolved your issue. If it didn’t then, please try steps in our WordPress troubleshooting guide.

      Administrador

  15. Lisa Cox says

    This article saved me so much time….I was ready to scrap the whole thing and re-do the blog from the start because I thought I had made an irreversible mistake. Two clicks everything is fixed – THANK YOU! Sorry, I didn’t mean to sound like Dr. Suess. Enjoy your day!

  16. Daulat khan says

    Hi! This article was helpful but when i put my site on google search bar ex, ac-universal.com/wp-admin an error 404 found how can i enter into my word press.
    Guied ne thanks

  17. Mark Wayda says

    Just wanted to say thanks. Simple and effective fix for a problem that had been perplexing me for a few days!

  18. Okereke Divine says

    Though my problem was that if i try to update my post., it redirects me to 404page.

    I followed your instructions and it worked perfectly!

  19. Fernando Njaria says

    Thank you so much, had me going crazy with the 404 error, but after saving changes to the permalinks settings it worked!

    • Doni says

      That is my problem also. I can access my home page and one of the two top-nav pages, but I can’t access the second page, and I can’t get to /wp-login or /wp-admin.

  20. Tom says

    Great tips – for some reason, this didn’t completely fix my issue as AllowOverride was set to ‘None’ in my httpd.conf file

    Should anybody else run into the issues, simply edit your Apache2 httpd.conf file located in one of these locations: /etc/apache2/httpd.conf. /etc/apache2/apache2.conf.

    Look for:

    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted

    And replace with:

    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted

    Hope this helps somebody!

    • Clinton says

      Thank you Tom,
      I deployed a new site with Google One Click Deploy and missed some instructions about setting the AllowOverride All for the docroot directory. Your reply along with this article helped me get this working again. With AllowOverride set to None .htaccess files are ignored, so the directives to use make permalinks work, fail. In my case the config that I needed to edit was /etc/apache2/sites-available/wordpress.conf which had the directory of the wordpress install with the AllowOverride None set.

    • My Real Name says

      Thank you sir. You are my hero right now. I looked at so many sites and not a single one of them mentioned this. It wasn’t even obvious from the apache manual, to the extent that I read that.

  21. Lagz says

    Worked like a charm, Thanks!
    Contact form 7 Ajax was not working, giving me the feedback 404 error in console log.
    I did not suspect rewriting rules until I read this.
    Saving the permalink settings did the job!
    Thank you

Deja tu comentario

Gracias por elegir dejar un comentario. Tenga en cuenta que todos los comentarios son moderados de acuerdo con nuestros política de comentarios, y su dirección de correo electrónico NO será publicada. Por favor, NO utilice palabras clave en el campo de nombre. Tengamos una conversación personal y significativa.