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

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

    Hi,

    I have moved my two domains from a web hosting service provider to another web hosting service provider. The new web hosting service provider setup WordPress websites from the cPanel. Only the homepages are loading correctly but the other webpage links are showing Server Error 404 Page Not Found.

    The webhosting service provider told me to update my permalinks and the web.config code. I updated the permalinks to show “post name”. I don’t know how to update the web.config code. From watching these videos, I see that I should update the htaccess file. However, my htaccess do not show any missing text and it contains identical as shown in your video. What next should I do?

    Many thanks.

  3. Joe

    My problem is, I moved my blog to a self host. And changed my permalink to “post name” Ever since then,

    1. I noticed my traffic start reducing,

    2. Couldn’t get searches from Google/yahoo/bing linking to my blog again.

    3. Got a lot of broken links.

    What do I do please?

    I’ve started getting discouraged with this..

    • WPBeginner Support

      Hi Joe,

      You can change your permalink structure to whatever it was before by visiting Settings » Permalinks page.

      Administrador

  4. David

    Thank you very much! This tutorial was very helpful.

  5. Bert Ramirez

    Worked like charm…THANK YOU!!

  6. Tejash

    Thanks so much. I was able to resolve the error

  7. prakhar

    when i try to see plugins it gives 404 error.
    add plugin is working fine but i can’t get to plugin.php when i try to see
    installed plugins.
    also update-core.php also gives 404 error.
    what could be the reason?

  8. jeff

    Hi,
    I have the same problem. I couldnt able to install a plugin which is this “themify-wc-product-filter.zip” .i always get file not found error 404 as result. can anyone help me out please? thanks guys in advance

  9. Marisol

    Hey thank you work for me took me 2 minutes to fix it!

  10. Sjoerd

    Hi,

    I have the same problem. The first solution worked for me, just now wordpress somehow keeps getting back tot the 404.
    So i click save changes, it works again. And then a few minutes later the 404 error is back. Anyone any ideas?

    Thanks.

    Kind regards,
    Sjoerd

  11. Ravi J

    I have the same issue too….

    1) Changed Permalink
    2) Manullay created the .htaccess file
    3) removed and created the site once again

    Amy help is greatly appriciated

    Note: I am setting up a local instance in Ubuntu 16 LTS.

  12. Biggles

    I have a similar problem: I moved hosting providers and now my WP login box is top left hand corner of my browser screen and, most critically, when I login, every page and link for WP gives me a 404.

    The website loads fine for my visitors but I am unable to gain access myself in WP. Well, I am, I can log in, but that’s all I am able to do. After many years of web design, this is a first.

    I have done the following:
    1. deleted the .htaccess file
    2. tried an old .htaccess file
    3. created a new .htaccess file
    4. changed the name of some and all of the plugin folder names via ftp to see if there’s an issue with a plugin

    FYI, that I was unable to load my sample website (subdomain) after the migration, and all that was showing was a ‘database error’ white screen. I finally managed to track down the issue, and I was a little bit upset about it: in my new cPanel, I noticed the username had disappeared next to the database name, and when I tried re-entering it again it wouldn’t take it because I had been limited to only a few characters in length. I created a new username and updated the config file, and it works okay now.

    So, I opened my new cPanel and my previous cPanel side by side and my old host didn’t restrict me on database username character length, whereas my new host did to about 7 or 8.

    …so, I’m starting to think that even though all of my other subdomains and client websites are now all loading fine, that it may be that a different version of cPanel and how my new hosting provider has set it up has affected how I interact in WP for my failing website.

    v. 68.0.23 new cPanel
    v. 66.0.34 old cPanel

    Do you think there is an issue with how my new host has setup WHM and / or cPanel.

    Many thanks in advance : )

  13. Wen

    Hi there, i did other test and the error show everytime, so any ideas??

    • Afroze

      for me, after going nuts, i had to enable the rewrite module… i forgot to do this when I migrated sites.

      in ubuntu:
      sudo a2enmod rewrite

  14. Wen

    Hi guys!
    I’ve tried everything and its shows still the error in my links, can you help me?

  15. Hank Wilson

    Thanks for this, permalinks idea worked. Bookmarked for future reference

  16. Alan Ross

    Thanks for the fix. Worked like a charm !

  17. Fahad Siddiqui

    I tried this .htaccess code but the error remains same as “Not Found
    The requested document was not found on this server.”

  18. TJ

    I am wondering if this would fix my admin login page? Keeps showing 404 error and not the login page. I don’t have issues with a 404 error on pages and post. I think it might be conflicting plugin I’m using called Hide MyWp, but they told me its working and reset the settings anway and said it’s beyond their plugin control.

  19. LaVonne Carlson

    Thank you! This worked for me. I did have to change the Common Settings from “Custom Structure” to “Post name”, but once I did that my blog came back.

  20. Nick

    I followed your instructions, but I still get the “white page of death” with my posts. Is there a way to actually remove “index.php”?

    • WPBeginner Support

      Hi Nick,

      The index.php file is crucial for your WordPress site to work properly. If you think it is causing the issue, then you can download a fresh copy of WordPress, unzip on your computer, locate the index.php file and upload it to your website replacing the old file.

      Administrador

  21. Malik aadil

    Thanks so much
    It helped me to solve 404 error problem

  22. srinivas

    i dont know how to thank you…it really helps and solved my problem…thanks ….lovely post

  23. Demari

    Thank you so much for this!

  24. Christina

    Thank you very much! Your help solved the problem!

  25. Rafi ullah

    Hi every one..
    i have a website which is working properly but when i login to admin panel and want to edit a page it show me a error that “page not found” but in the front end it look fine this error show only on editing time ..
    please help me i am stuck
    Thanks in advance

  26. Jeremy

    THANK YOU SO MUCH! I’ve tried everything else thinking it was a timing error. You saved me lots of time.

    Thank you again!

  27. Serguei Kireev

    didn’t work for me. installed Yoast SEO, noticed it defaulted to weird permalinks with /index.php/ in them, went to change that to normal way – no more permalinks for me… only works via ?p=123

  28. mudi

    Hi, you guys are great it’s work for me

  29. Vikash

    Thanks, Its worked perfectly.

  30. Karen Holst

    You guys are the best!

    I always find your tutorials to be just what I need to update/fix my WordPress site!

    Regarding the 404 not found issues, I had some template pages (I purchased a WordPress theme from a vendor and had some live pages hidden that I wasn’t using) that were getting indexed that I didn’t want indexed. So I changed the pages to “unpublished” in WordPress.

    I ran an analysis on indexability and now all those pages are showing “404 Not Found” errors.

    Do you all suggest a way to keep these pages from being indexed altogether? What is the best practice for fixing something like this?

    Thank you again for all the great work you all do!

  31. Shahidul Islam

    Thanks So much! It works great!

  32. Azizul Haque

    Thanks, This worked for me too!

  33. Mark Quinn

    Many thanks. This worked a treat.

  34. vishnu

    Hi
    please help to fix the following.
    while submitting a comment in my webpage its working properly but after 3 or more submission it showing 404 page not found
    how can i fix this problem without using a plugin.

  35. Munesh Dagar

    wow,
    this is very helpful.. my website is not not load page cause of URL not found
    i am go to permalinks & select other links & again i selected postname & save settings my website is work properly

  36. zhivko

    The update in Settings Permalink worked perfectly for me.

  37. danny

    I had the problem with the permalinks and fixed the issue by saving as a plain permalink then saving as custom permalink. that worked but I am having a problem with the permalinks issue again. i fixed it by doing the above step again. is there a way to avoid it happening again. thanks!

  38. Milos Mitrovic

    Hello guys,
    I have the same problem, some pages appear as ‘not found’ but they are present in wordpress. Check this one:
    I have updated permalinks but it didn’t work.
    I wouldn’t dare accessing my FTP and would like to know if there is any other way to change it? I use hosted wordpress.
    Thanks

    • WPBeginner Support

      Hi Milos,

      We will suggest that you update .htaccess file using FTP or File Manager in cPanel.

      Administrador

  39. Jheel

    Hey,
    I am getting error for rest of my pages , excluding the home page. The images & the videos are not visible. I have done all the required steps. Kindly help me out.

    • jora

      same probleme did you find any solution yet ? Thank you

  40. Kimberly

    Thank you so much!! Flushing the rewrite rules worked.

  41. Hemant Pandey

    It helped. Very nice. Can you suggest best permalink structure? Also how to get social counts back after changing permalink structure?

  42. Himaja

    I am trying to add the wordpress blog as a subdirectory in nginx server. Added blog under cakephp/app/webroot/blog . Main page works fine but not the post links and sublinks. Shows not found error. I tried your post but no result. Can you please help me to sort out this?

    Thanks.

  43. Mike

    Hello, I tried just about everything
    1. Deleted and uploaded new htaccess file
    2. Checked robots.txt
    3. Checked sitemap
    4. Disabled all plugins
    5. Checked google console
    6. Checked to see if my site is blacklisted
    Google will not communicate with my site all at.
    I only get “403 forbidden error”. I couldn’t even verify my site ownership with google until I verified through the “cname card”.
    During 1 test I did get a “200 server error”. Please help

  44. Lucky

    Many thanks for you help. It worked my site is back.

  45. Jill

    Hello! I downloaded the htaccess file and copy/pasted. I am still getting the 404 errors on my blog. Not sure what else to try. Any ideas?
    Thank you,
    Jill

  46. Dias, Wesley S.

    THANKS!!!!! Very much.

  47. Phoks

    not work :-( same probleme halp me please

  48. tauseef shah

    thank you so much buddy, it really help me

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.