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

    Well, your tip saved me hours of searching – many thanks

  3. Nima Arefi

    Thank’s you saved my life :d

  4. Juan

    Hello, I have a problem since I migrate the website from localhost to a server, the main page looks good but the menu is not displayed but the links do not work always throws error 404.
    They can help me, this is a cause of a migration from a local server.

  5. Marissa

    I can’t thank you enough for such a simple tutorial!! Everything else I found made it seem so difficult. I recently switched from http to https and it has been one problem after another..

    • WPBeginner Support

      Hi Marissa,

      Glad you found this tutorial helpful. Don’t forget to join us on Twitter for more WordPress tips and tutorials.

      Administrador

  6. Rick

    I didn’t have an .htaccess file so I created one with the info you provided above; then uploaded it and the site works perfectly again. Thanks!

  7. Curtis

    Hi I have done all the above and noticed the bit of text to copy and paste was already in there! It still is not working and im stressing out!

    • Tibi

      I’ve done the same thing and nothing changed, the home page still not found :(

      Please contact me if you find a solution

  8. Patrick

    Wow. This really saved my bacon. Thank you so much for the tip on simply saving the permalinks page. Incredible advice! :)

  9. Alexis

    hello! i’ve reset permalinks many times to deal with the 404 error. this time when i hit save a file downloaded to my computer: options-permalink.php and the site broke. just got a white screen and each time a file downloaded. finally i got the default permalinks to work but this is not a great solution. does this sound familiar to you? tech support didn’t think it was the .htaccess file but i’m not convinces. moved site from one host to another. any help would be much appreciated.

  10. Mike Birdsall

    How do I update settings if I can’t log into the WP admin. I get the 404 error when going to /wp-admin

  11. Kelly

    So helpful!! thank you!!!!!!

  12. seun

    Hello, please help, i seem not getting solution through this tutorial cos i can’
    t access my dashboard, i keep getting this message any site directory i open.

    Not Found

    The requested URL /index.php was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

  13. Clint

    Thank you, just clicking save on my permalink page (which has been customised for years) worked immediately.

    • Chris Keeble

      Perfect!

      Clicking Save Changes on Settings > Permalinks works first time.

  14. tamim

    Wow! that’s a great solution.

  15. Jason

    Hi, I was having the 404 error problem. Homepage works fine, all other links have the 404 error. Tried the method you suggested in wordpress settings permalinks and click save changes but it didn’t work for me.

    Saw some post earlier about sync the htaccess file through the webhosting settings page somewhere but don’t really know how to do it. Any advice? Thanks

  16. Mohamad Zidani

    Hi

    I was using Fv Top Level Cats, when i removed still redirection worked from

    example.com/category/tech to

    example.com/tech.

    i try your solution and it doesn’t work.

  17. Joerg Naussed

    the 404 appear right away what happen?

  18. Lijo Jose

    Thank you, My problem was solved

  19. Mariana Cervantes

    Thank you so much!!!! My problem was fixed with the permalink solution :)

  20. Michael

    If this error is affecting your login page, go to .htaccess and remove:

    “deny from all”
    “allow from 00.00.00.00”

  21. Matt Kay

    Fantastic – I had moved my site from one server to another and started getting worried about 404 errors. The fix worked perfectly – so easy!

  22. Bienvenido

    A very simple answer to a hair pulling issue. Thanks a bunch. BTW this issue started after I installed BJ Lazy Loading.

  23. Gail Gardner

    Thank you! This did the trick.

  24. Ahmed

    Hi, One of my site was hacked. There was few hundreds article inserted. Now those has been removed. Google webmaster console showing those as 404.

    How this can affect my site how to fix this?
    Thanks

  25. Stephanie

    Wow, thank you! This worked perfectly.

  26. Mawuli Tanor

    Spot on! On the dot!
    First fix worked.

    Thanks a lot!

  27. Peter Mazzi

    Thanks. pity there’s no rating on this page. *****

  28. David M. Curtis

    Thank you for posting this article. I had spent months building a store / blog and today none of my pages or posts were working other than the front home page, all other links were taking me to a 404 error page. I was about to start completely over – re-peat months of work. This article saved my site. Now everything is working again. I can’t thank you enough.

    • WPBeginner Support

      Hi David,

      We are glad you found the article helpful :) Don’t forget to join us on Twitter for more WordPress tips and tutorials.

      Administrador

    • Robin

      Hi there, completely stuck here, not a computer guy at all so it’s all greek to me. my homepage is good but I’ve created another 5 pages such as blog post, services, etc. and every time I try to view the page I’ve just created I get NOT FOUND The requested URL /services/ was not found on this server.” I’ve tried saving changes didn’t make any difference and I have no idea what an FTP is. Any help ? thx

      • WPBeginner Support

        Hey Robin,

        Try updating your permalink structure. Simply visit Settings » Permalinks and then click on the save changes button without changing anything.

        Administrador

  29. Preet Karan

    Hi everyone,

    i installed yoastseo plugin. i generated the XML site successfully, but when i tested it on google search console it is showing 404 error.

    i tried the method listed in article but the problem still persist.
    also i need to mention that in the CCpanel there are two files of the same name htaaccess and htaaccess.1 (with the same code written that has been mentioned by article above ); is it normal,
    can you help me wth the issue

  30. David

    I can’t believe just clicking “Save Changes” worked. Thanks!

  31. jorge

    hello there im I would really appreciate help I followed the instructions on saving changes on permalinks not a computer person so do not know how to do the other after is showing me this

    Fatal error: Class ‘Epsilon_Editor_Custom_Control’ not found

  32. yugal joshi

    great man..thank you much.. i open my site but its throwing 502 error then 503 error and then lastly 500 error..then i solve the problem of 500 from cpanel threw ur post.
    but when i open my post pages its showed 404 error then i googled it and find ur post…thanks…

  33. Bren

    In the event this is a new server, or an Apache upgrade you may have to check the following:

    Open the httpd.conf ie: /etc/httpd/conf/httpd.conf.
    Change the AllowOverride None to AllowOverride All.
    Save changes
    Restart the Apache server.

  34. Mariyam

    Wow, as easy as that, Thank you!

  35. Ashley Adams

    Having a little trouble… After I hit save changes on the permalink page, another 404 error popped up.

  36. Katherine

    This just saved me hundreds of dollars in help. <3

  37. James V

    Quick fix…thanks for the help!

  38. marco

    still having problems, not sure what to do, i followed steps above, and get same results. my web host company uses windows 2012 server so no .htaccess file. so many of these help posts refer to .htaccess which windows does not use. they use the web.config file i think, is that correct? please help

  39. marco

    I have followed the above steps, but still does not work. I am on windows 2012 R12 server and do not have a .htaccess file, even while in FTP force hidden files to display . are there instructions on how to fix this problem when on windows server

    • WPBeginner Support

      Hey Marco,

      First you need to download a backup of your existing web.config file to your computer. After that you need to edit the file on your server and add following rule to the system.webServer element:

      <?xml version="1.0" encoding="UTF-8"?>
      <configuration>
      <system.webServer>
      <rewrite>
      <rules>
      <rule name="WordPress Rule" stopProcessing="true">
      <match url=".*" />
      <conditions>
      <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
      <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
      </conditions>
      <action type="Rewrite" url="index.php" />
      </rule>
      </rules>
      </rewrite>
      </system.webServer>
      </configuration>
      

      Administrador

      • Salami

        Hi WPBeginner Support. I have tried all the solutions pasted on this blog to solve the same problem(404 error on wordpress) am confronting now since two days, but i haven’t got it right. Am developing my website with windows platform using wordpress. Please what other thing I should do to solve this problem?
        Thanks in anticipation to your response.

  40. Dale

    Amazing help thank you! As simple as clicking save!

  41. david c

    worked like a charm – thank you thank you!

  42. Michelle

    I want to hug you for all your extremely helpful posts. Thank you very much!!!

  43. Steve Andrews

    I migrated a site to, imported the mySQL DB and uploaded the entire file structure of the wordpress directory.

    I still got a 404 error for everything but the home page, and re-saving the config in the permalinks section did not work.

    What worked for me was renaming the htaccess file on the FTP site to htaccessOLD so it would not be referenced, but I still have it backed up if needed, then I went and saved the permalink options, had to chose what type of link I wanted (IE date, page no or description). Once I saved all the pages were back up and running.

    Thanks for the post, it gave me the pointers to find this and fix it.

  44. Rene

    I followed the exact steps but unfortunately they don’t work for me. I keep getting errors 404 despite saving my permalink info, removing .htaccess and re-generating it. I am able to view my home page, but as soon as I want to visit a sub page, the error 404 pops up. I also tried switching to WPs default themes, also that doesn’t help. Are there any advices for “advanced” bug solving in case of 404 errors?

    • WPBeginner Support

      Hey Rene,

      Try updating WordPress URLs by visiting the Settings > General page. Make sure that your site and WordPress URL are the same.

      Administrador

  45. sampurna

    Hey. I have a little problem with 404. I had changed the permalink of a single post. now for a certain keyword google is displaying the same post in two different positions with same title but different url and one has 404 error. please help.

      • Rene

        Not needed, problem is fixed. I coincidentally found out that my host is reading a different .htaccess file than the one that WP generates. So a “sync” had to be done via their webhosting portal, that was all. Now it works, thanks a lot anyway and perhaps this alternative solution is still useful for other to know that may have a similar setup by their host. Rgds!

        • Carey

          Same here! Needed to ‘sync’ the htaccess file through the webhosting settings page somewhere… thanks for the tip!

  46. Rajinder S. Gill

    This was quick. Thank you :-)

  47. Lois

    You saved my life today. I was at the verge of crying because after creating a post, I was unable to read the post. it returned 404 error. I eearched several websites for answers but your post was well explicit and once I changed the permalink structure, it worked. Thank you thank you.

  48. Kaylee

    I’m still now following at where you exactly change the permissions at. Could you please explain?

    • Mike lavie

      The solution: Login to your server using FTP, and modify the folders like /wp-content/ and /wp-includes/ are located. The easiest thing you can do is to temporarily make the file writeable by changing the permissions to 777. Then repeat the original solution.
      Go to Settings » Permalinks, and simply click on Save Changes button.
      Don’t forget to change the permissions back to 755 ( /wp-content/ and /wp-includes/ ).
      I do it for is perfect now!

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.