¿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.
Jen
So for me… I first deleted the WP Fastest Cache out of my Cpanel and THEN…I “bulk deactivated” all my plugins. Did a refresh…and it worked! Praise God!
Then I activated the plugins I still needed. So far so good.
Thanks so much!
WPBeginner Support
Thanks for sharing what worked for you
Administrador
nebiyu amde
i have fixed it using the first method. but when i try to get back to my home page from other pages it’s showing me this error: Error establishing a database connection…how can i fix this
WPBeginner Support
To fix that error, you would want to take a look at our guide here: https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/
Administrador
Zeke Yoder
If the problem still persists, you might want to check to see if mod_security is active and causing issues.
I ran into this on a wordpress site hosted by Dreamhost and tried all of the options listed on this page before realizing this was my issue.
WPBeginner Support
Thanks for sharing this should someone else run into the same issue
Administrador
Ajit
I’m still facing this issue.
WPBeginner Support
If the methods in this article are not working then you would want to reach out to your hosting provider to see if the error could be caused on that end.
Administrador
Bunmi
Thank you.
I have tried deactivating my plugins; I am using theme twenty sixteen. But still, my pages keep loading “the page can’t be found” when I use the custom permalink. I have done the .htaccess, but nothing is working. The post and categories load fine, but pages won’t load unless I use the plain permalink, which is not advisable for SEO purposes.
Please help me.
WPBeginner Support
You may want to check with your hosting provider if you haven’t done so already to see if it could be part of an error on their end.
Administrador
Louis
This did not work. .htaccess file is correct but nothing above helped. Still looking for a solution.
WPBeginner Support
You may want to start with our troubleshooting guide here: https://www.wpbeginner.com/beginners-guide/beginners-guide-to-troubleshooting-wordpress-errors-step-by-step/
Administrador
miguel
hello, thanks for the post, great.
i have 404 error but cannot acces neither the site or the wordpress. how can you access wordpress admin to solve the problem??
WPBeginner Support
You would use FTP to access your htaccess file for one option and if that does not work you would want to take a look at our tutorial here: https://www.wpbeginner.com/beginners-guide/beginners-guide-to-troubleshooting-wordpress-errors-step-by-step/
Administrador
Rosy Allan
THANK YOU SO MCUH! sorted
WPBeginner Support
Glad our guide was able to help
Administrador
Denise
Awesome! Thanks!
WPBeginner Support
You’re welcome
Administrador
Lars
thank you so much – how quick a fix !
WPBeginner Support
Glad our guide could be helpful
Administrador
Avikar
Great info, works perfectly. Got me running again
WPBeginner Support
Glad our recommendations could help
Administrador
Vhan
Thank you so much my site is back.
WPBeginner Support
Glad our recommendations could help
Administrador
Gabriel Waju
this tips really helpful…thank you so much
WPBeginner Support
Glad our recommendations are helpful
Administrador
Theodora
Please i cannot even access the admin area of my page,i also can’t load the page itself at all. What can i do to solve this?
WPBeginner Support
It would depend on the error you are receiving, for a starting point you can go through our guide here: https://www.wpbeginner.com/beginners-guide/beginners-guide-to-troubleshooting-wordpress-errors-step-by-step/
Administrador
sudhanshu
Thanks. This been a great help
WPBeginner Support
You’re welcome
Administrador
Shahnawaz Ahmad
When i am doing same thing and when i am clicking on Save Changes it also redirecting me to my website with 404 Error
WPBeginner Support
You may want to reach out to your hosting provider to see if they are seeing any errors for your site on their end.
Administrador
Victor Carlvin
Came here at first, couldn’t see the solution in the post. Searched the internet for several hours, came back and decided to read the comment section, there I saw the solution to the issue.
A plugin caused it and once I deactivate, update and reactive it, works fine thereafter. Thank you
WPBeginner Support
Thank you for letting us know what solved the issue for you in case anyone else runs into the problem
Administrador
Christos
Thank you, i was just getting ready to jump off the building
but your post saved me!
WPBeginner Support
Glad our post could help solve the problem
Administrador
Kurnia Sudiar
Thankssss, it works !!!!! it solved my problem
WPBeginner Support
Awesome, glad our guide was helpful
Administrador
Fiona
Hi
Thank you very much !
this article is really helpful and solved my problem .
WPBeginner Support
Awesome, glad our article could help
Administrador
chioma
The permalink solution worked for me. Thanks so much
WPBeginner Support
Glad our guide could help
Administrador
ahmed s
thanks.. i was very close to pulling my hair out. lol.. i was getting the 404 on all my portfolio pages. yikes. easy fix.
WPBeginner Support
Glad our article could help
Administrador
Derin
I have tried to click the save button on setting>permalink on my wordpress admin but the problem still persists. I can’t seem to locate the .htaccess on my FTP login. I noticed someone commented about editing the front. I tried checking out the storefront editor, but because I am not a programmer, I am being careful not to cause more damage to the theme. Any help on how to resolve the “404 Page Not Found” permalink problem. It started after a recent wordpress update.
WPBeginner Support
If resaving the permalinks didn’t work you may want to go through our troubleshooting steps here: https://www.wpbeginner.com/beginners-guide/beginners-guide-to-troubleshooting-wordpress-errors-step-by-step/
Administrador
Babajide Adepoju
a plugin was the problem for me; I deactivated it and had to edit the page somehow. It wasn’t that nice but it worked.
WPBeginner Support
Thanks for sharing what solved your problem
Administrador
Gary Leigh
Thanks. This really helped and saved me a lot of stress.
WPBeginner Support
Glad our guide could help
Administrador
Charles D
Just have to smile, as I am not the only delighted person. Saved from 3 days of agony kept getting a broken link mydomain.com/’/menu/category
the /’/ was apparently not linking and your TIP on Go to Settings » Permalinks, and simply click on Save Changes button. worked like a charm cheers
WPBeginner Support
Glad our tip could help
Administrador
mark
my issue not solve, 404 is returning when i am updating sub pages
WPBeginner Support
You may want to reach out to your hosting provider to ensure there are no issues on the hosting’s end
Administrador
Harry
Perfect! You have saved me lots of time,
So let me just Thank You here
Cheers
WPBeginner Support
You’re welcome
Administrador
Claudiu
You are magic:)
WPBeginner Support
Thank you
Administrador
Moussa
Thanks the first method works fine for me
WPBeginner Support
Glad our guide could help
Administrador
godfrey
After trying everything stated to solve error 404 and couldn’t I decide to edit with front editor and save, vola it started working again.
WPBeginner Support
Thanks for sharing what solved the issue for you
Administrador
Qadir Amin
I have applied all tricks like
Changed Permalinks
Changed Theme
Changed plugins
but all in vain, how can i resolve my this error?
WPBeginner Support
If you recreated the htaccess file you may want to reach out to your hosting provider to ensure there are no errors on the host’s end
Administrador
Dave
The 404 error has been haunting me for last 3 days now, my problem is that I cannot access anything, no WP dashboard, no website, no cPanel, it’s turning out to be quite a disaster please help me fix this
WPBeginner Support
For a 404 on everything, you would want to start by reaching out to your hosting provider for what they see on their end.
Administrador
dave
do you service any word press sites? i need help.
WPBeginner Support
Unless I hear otherwise, we do not have a maintenance service but you can feel free to send us the issue you are running into using our contact form.
Administrador
Reddemma
i moved my local wordpress website to server.i changed composts table pointing to server ip and replaced all local host.changed config file and comoptions table also.
But menu links not working in server site.How can i fix this?
WPBeginner Support
You may want to try recreating your menu to update the links.
Czarek
Thank you very much! You save me with this solution
WPBeginner Support
Glad our article could help
Administrador
Rephin Perez
Thanks so much !! You have saved my day. Didnt know that Saving the permanent links would fix this issue.
WPBeginner Support
Glad our article could help
Administrador
Decode Digital Market
This post literally saved my life. I just had 404 error to all my posts.
All I had to do was save changes in permalinks and it worked.
WPBeginner Support
Glad our article could help
Administrador
Carmen
Thank you so much for the information, unfortunately I am still having issues. When I try to click into +Add New Page it takes me to a 404, if I click +Add New Plugin it also takes me to a 404, if I try to add anything new it will take me to a 404, my website is still in the creation process, it is not yet published. I tried to use filezilla, but after multiple attempts doesn’t connect to my file. Do you know what I should do, I would greatly appreciate your answer!
WPBeginner Support
You may want to reach out to your hosting provider to see if they have an error log on there end that points to the issue, your other option would be to go through the steps in: https://www.wpbeginner.com/beginners-guide/beginners-guide-to-troubleshooting-wordpress-errors-step-by-step/
Administrador
alaa mohamed
ok so am not sure if that’s the exact same issue am having. generally, when I access my website I don’t get any 404 errors yet on my SEO audit tool it is shown that my WordPress posts preview page is coming back with a 404 error, can anyone help me get this fixed ??
WPBeginner Support
You would want to reach out to the support for your SEO tool to see if this is a known issue with the tool
Administrador
Mathukutty P V
Today enabled minify script/styles in swift performance lite and after that except home page all other links showed 404 error. searched and found this post and on checking found .htaccess empty, added the basic code from this post and 404 error gone. All links are working fine Thanks.
WPBeginner Support
Glad our article could help
Administrador
jeremy
please help me out
i dont know whats wrong with my WordPress website, i tried creating a new post when am done, i click on publish but it redirect me to a page not found which 404, please help me out as at now, i cant publish anything on my site nothing is working,
thanks for your help in advance.
WPBeginner Support
To start with you would want to go through our troubleshooting steps here: https://www.wpbeginner.com/beginners-guide/beginners-guide-to-troubleshooting-wordpress-errors-step-by-step/
If none of those steps work, if you reach out to your hosting provider they may have an error log that can point to the reason for the 404 error.
Administrador
Alexander Londono
you just save me a lot of time.
it had take me 2 hours with no solution
WPBeginner Support
Glad our article could help
Administrador
Ahmad WABBI
This is a great post. I had a problem with the permalinks when I moved my WP site from a server to another. Your post saved me a lot of time searching for the reason.
Thanks
WPBeginner Support
Glad our article could help
Administrador
Babar Waheed
hi
your all articles are easy to understand step by step with screen shots guide thanks for writing
I have a free classified website in word press. advertisers are posting ads in my website but few of them not meet with our terms and conditions so we delete those ads when i delete ads i get a message by word press.
(You just trashed a Post. Search engines and other websites can still send traffic to your deleted post. You should create a redirect to ensure your visitors do not get a 404 error when they click on the no longer working URL. With Yoast SEO Premium, you can easily create such redirects)
My question is how to fix this problem without buying yoast seo premium?
WPBeginner Support
You can manually redirect the 404s using the method in our article here: https://www.wpbeginner.com/plugins/how-to-track-404-pages-and-redirect-them-in-wordpress/
Administrador
Priya
Hello,
My website is under construction right now.
But I still receive 404 error while logging in.
It does not allow me to open my account on wordpress as error arrives immediately after clicking on the log in button.
How to solve this problem so that I can assess wp to complete my website?
Plz give me directions so that I can proceed further as soon as possible.
Thank you!
WPBeginner Support
It would depend on the specific error message but for a starting point you could try the steps in: https://www.wpbeginner.com/beginners-guide/beginners-guide-to-troubleshooting-wordpress-errors-step-by-step/
Administrador
Baba nee
Good day, i installed a pluggin. So i can put the google addsense script to my the head section of my blog, after putting this code to the pluggin and updating my permalinks i saved it. It still telling me page not found! How do i fix the error! Is there any other way i can insert this script manually via my cpanel! Please help a brother who is so confused right now
WPBeginner Support
You can take a look at our Adsense guide for how to add the code here: https://www.wpbeginner.com/beginners-guide/how-to-add-google-adsense-to-your-wordpress-site/
Administrador
Sapna
These steps seem so simple. But I tried everything. Changing the rights to 666 and 664. Deleting the .htaccess file. Copying and pasting the code didn’t help either.
I even changed the permalink settings to which I desire and rewrite all the pages by hand again. To make sure they get the name I want and to have new page id’s
I tried literally everything. I’m really clueless now. Can you please help me.
WPBeginner Support
To start, if those methods did not work, you would want to go through the general troubleshooting steps in our article here: https://www.wpbeginner.com/beginners-guide/beginners-guide-to-troubleshooting-wordpress-errors-step-by-step/
Administrador
Dasuni
Fatal error: Class ‘Email_Before_Download_Form’ not found in /wp-content/plugins/email-before-download/includes/class-email-before-download-shortcode.php on line 65
Why???
WPBeginner Support
Your email before download plugin appears to be having an error, you would want to reach out to the plugin’s support to fix the error with the plugin. For being able to log into your site you should be able to log in once you disable the plugin: https://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/
Administrador
Darshan Tejani
Hi. I liked the simplicity in the Tutorial. Sadly, it didn’t work for me!
The error goes away only If I change my permalink to ‘plain’. If I change back permalink to ‘post name’, then it shows the error! I’d be grateful If you’d help me out here. Thanks anyway for the post.
WPBeginner Support
If recreating the htaccess method is not working then you would want to reach out to your hosting provider to see if the mod_rewrite rule is enabled on their server.
Administrador
Jasmine Martin
thank you!
WPBeginner Support
You’re welcome
Administrador