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 hacer un seguimiento de las páginas 404 y redireccionarlas fácilmente en WordPress

Nota editorial: Ganamos una comisión de los enlaces de socios en WPBeginner. Las comisiones no afectan a las opiniones o evaluaciones de nuestros editores. Más información sobre Proceso editorial.

¿Estás buscando una manera fácil de encontrar páginas de error 404 en tu sitio web WordPress y redirigirlas?

Los errores 404 se producen cuando los usuarios intentan acceder a una página de su sitio web que ya no existe. Estos errores crean una mala experiencia para el usuario, lo que puede provocar una caída en el posicionamiento en los motores de búsqueda y reducir las ventas de comercio electrónico.

En este artículo, le mostraremos cómo realizar fácilmente un seguimiento de las páginas 404 y redireccionarlas en WordPress.

How to Easily Track 404 Pages and Redirect Them in WordPress

¿Qué es un error 404?

Un error 404 es un código de estado HTTP que indica que el servidor no ha podido acceder a la página web que está intentando visitar.

Esto significa que si introduce una URL de una página web que no existe, aparecerá el error “404 Página no encontrada”.

404 Page Example

Ahora bien, hay muchas razones por las que se produce el error 404. Puede deberse a que el visitante se equivocó al introducir la URL, a que la página se borró del sitio web o a que el nombre de dominio ya no existe.

Otra causa del error 404 es cuando una página se trasladó a otra URL pero no se redirigió correctamente, lo que provocó un enlace roto.

Por último, a veces el mal funcionamiento del servidor también puede provocar errores 404 en un sitio web WordPress.

¿Por qué seguir y redirigir las páginas 404 en WordPress?

Ahora que ya conoce las diferentes causas de los errores 404, veamos por qué es extremadamente importante que los propietarios de sitios web hagan un seguimiento de los errores 404 y los corrijan.

Los errores 404 son perjudiciales para la experiencia de usuario de su sitio. Si los usuarios no pueden encontrar la página que buscan, lo más probable es que abandonen su sitio y se dirijan a la competencia.

Esto significa que perderá clientes potenciales y la oportunidad de convertir a sus visitantes en suscriptores.

Minientrada en eso, los errores 404 tienen un impacto negativo en su WordPress SEO rankings. Los algoritmos de posicionamiento de los motores de búsqueda suelen penalizar a los sitios web cuando se encuentran con enlaces rotos.

Por no mencionar que estas páginas rotas le harán perder valiosos backlinks para su sitio web, lo que se traduce en una menor autoridad de dominio y una caída significativa en el ranking de palabras clave de Google.

Dicho esto, echemos un vistazo a cómo puede realizar fácilmente un seguimiento de las páginas 404 y redirigirlas en WordPress. Vamos a cubrir dos métodos diferentes, así que no dudes en hacer clic en los enlaces de abajo para saltar a su método preferido:

Tutorial en vídeo

Subscribe to WPBeginner

Si prefiere instrucciones escritas, siga leyendo.

Método 1: Seguimiento y redirección de páginas 404 con AIOSEO (recomendado)

La forma más sencilla de hacer seguimiento y corregir las páginas 404 de tu sitio web WordPress es utilizando el plugin All in One SEO para WordPress, también conocido como AIOSEO. Es el mejor plugin SEO para WordPress que utilizan más de 3 millones de profesionales.

AIOSEO le permite encontrar fácilmente páginas con enlaces rotos y corregirlos con sólo unos clics gracias a su potente gestor de redireccionamientos.

Lo mejor acerca de AIOSEO es que le ayuda a establecer redireccionamientos 301 más rápidos, lo que le ayuda a mejorar el posicionamiento en los motores de búsqueda.

Para este tutorial, utilizaremos la versión Pro de AIOSEO porque incluye la potente extensión Redirection Manager. Existe una versión gratuita de AIOSEO, pero no incluye el 404 seguimiento / vigilancia / supervisión ni el Redirection Manager.

En primer lugar, deberá instalar y activar el plugin AIOSEO Pro. Para más detalles, consulte nuestra guía paso a paso sobre cómo instalar un plugin de WordPress.

Activar redirecciones y habilitar registros de errores 404 en AIOSEO

Una vez que el plugin esté activado, puede ir a All in One SEO ” Redirecciones y hacer clic en el botón ‘Activar redirecciones’.

Activating Redirects in All in One SEO

Después de eso, debe visitar la pestaña “Ajustes” en Redirecciones y configurar el plugin para mantener registros 404 y realizar un seguimiento de las páginas con enlaces rotos.

Desplácese hasta la sección “Registros” y compruebe que la opción “Registros 404” está activada. A continuación, seleccione el período de tiempo para registrar los registros 404 utilizando el menú desplegable. Recomendamos no más de un mes para un rendimiento óptimo del servidor.

Enable 404 logs

Cuando hayas terminado, haz clic en el botón “Guardar cambios”.

Ahora verá una pestaña “Registros 404” en la sección Redirecciones de AIOSEO. Cuando active por primera vez los registros 404, esta página no tendrá ningún dato porque solo empieza a supervisar las páginas 404 después de que active el ajuste.

Con el tiempo, mostrará una ficha con todos los URL que tienen un error 404. Verás cuántas veces alguien ha intentado enlazar en la columna “Hits” y la fecha de la última visita en la columna “Last Accessed”.

Una vez identificadas las páginas con enlaces rotos, sólo tiene que redirigirlas al hacer clic en el botón “Añadir redirección”. Deberá redirigir la URL a una página relevante de su sitio web.

Click 404 logs menu option

Al hacer clic en el botón, verá la opción de introducir una URL de destino y seleccionar el tipo de redirección en el menú desplegable.

Por ejemplo, puede mover una página permanentemente seleccionando la opción “301 Movido permanentemente”.

Add redirect

A continuación, haga clic en el botón “Añadir redirección” y el enlace roto se redirigirá automáticamente a la nueva URL de destino.

Cómo vaciar los registros de errores 404 en AIOSEO

Con el tiempo, el tamaño de su archivo de registro puede crecer y ocupar mucho espacio en disco. La falta de espacio en disco en el alojamiento de WordPress puede dar lugar a errores. Para asegurarse de que no se encuentra con este problema, es una mejor práctica para borrar y vaciar los registros de error 404.

Con AIOSEO, puede borrar fácilmente cualquier error 404 individual de sus registros al hacer clic en el icono de la papelera.

Delete 404 error log entry from AIOSEO

También puede borrar por lotes sus registros 404 yendo a All in One SEO ” Herramientas y haciendo clic en la pestaña ‘Herramientas de base de datos’.

Ahora, desplázate hasta la sección “Registros” y haz clic en el botón “Borrar registros 404”.

Clear 404 logs from database tools

Enlace permanente Seguimiento en AIOSEO

Además de minientrada de errores 404, el gestor de redirecciones de AIOSEO también incluye seguimiento / vigilancia / supervisión de enlaces permanentes. Esto significa que si borras una página de tu sitio o cambias la URL de cualquier entrada de blog, AIOSEO te avisará automáticamente para que establezcas una redirección.

En algunos casos, AIOSEO puede incluso establecer los redireccionamientos 301 adecuados por usted sin ningún esfuerzo.

Consejo adicional: Establecer redireccionamientos 301 más rápidos en WordPress con AIOSEO

AIOSEO también le permite establecer redireccionamientos más rápidos yendo a la pestaña ‘Ajustes’ y eligiendo el método de redireccionamiento ‘Servidor Web’.

AIOSEO Server Level Redirects

Esto le permite desbloquear mejoras significativas de velocidad en comparación con el método de redirección por defecto de WordPress/PHP.

Método 2: Seguimiento y redirección de páginas 404 utilizando el plugin de redirección

El siguiente método para hacer seguimiento y redireccionar errores 404 es usando el plugin gratuito Redirection para WordPress. Se trata de un plugin avanzado, por lo que algunos principiantes pueden encontrarlo más difícil de usar.

En primer lugar, debe instalar y activar el plugin. Para más detalles, consulte nuestra guía paso a paso sobre cómo instalar un plugin de WordPress.

Una vez activado, vaya a Herramientas ” Redireccionamiento y, a continuación, desplácese hacia abajo y haga clic en el botón “Iniciar configuración” para establecer sus redireccionamientos.

Start setup of Redirection plugin

Después de eso, el plugin le preguntará si desea supervisar los cambios de permalink en WordPress y mantener registros de redirecciones y errores 404.

Sólo tiene que marcar la casilla de verificación de estas opciones y hacer clic en el botón “Continuar configuración”.

Basic setup Redirection plugin

El plugin probará ahora el estado de la API REST.

Cuando el resultado del estado sea “Bueno”, puede hacer clic en el botón “Finalizar configuración”.

Rest API test in Redirection

A continuación, el plugin establecerá la redirección. Tardará unos segundos y, cuando haya terminado, deberá hacer clic en el botón “Continuar” y, a continuación, en el botón “Listo para empezar”.

Ahora, puede empezar a redirigir sus páginas 404.

Sólo tiene que introducir la URL de la página que desea redirigir en la columna “URL de origen”.

A continuación, seleccione si desea que los parámetros de consulta coincidan exactamente, ignorarlos o pasarlos a la URL de destino en el menú desplegable “Parámetros de consulta”.

Ahora, debe introducir la URL de destino a la que se redirigirá la página 404, mantener la opción de grupo como “Redirección” y hacer clic en el botón “Añadir redirección”.

Add new redirection

Si desea más opciones para establecer la redirección, sólo tiene que hacer clic en el icono del engranaje situado junto al botón “Añadir redirección”.

Puede empezar añadiendo la antigua URL que muestra 404 en el campo “URL de origen”, seleccionando el parámetro de consulta como antes y añadiendo un título que describa el propósito de esta redirección.

A continuación, seleccione la opción “Coincidir” del menú desplegable. Verás varias opciones, entre ellas URL solo, URL y referente, URL y agente de usuario, y URL y estado de acceso / login.

More options for add new redirection

En la mayoría de los casos, es preferible utilizar los ajustes de “URL y referencia”. Esto se debe a que si ves varias solicitudes 404 para una página específica, entonces esos usuarios probablemente enlazaron la misma URL incorrecta en lugar de escribir todos la misma dirección web incorrecta.

Ahora, cada vez que alguien haga clic en la URL rota, se le redirigirá automáticamente a la nueva ubicación.

A continuación, asegúrese de que su acción es “Redirigir a URL”. Las demás opciones son complejas y requieren conocimientos técnicos avanzados.

Para el tipo de redirección, debe seleccionar una opción del menú desplegable de código HTTP. Para una redirección permanente, debe ser ‘301 – Moved Permanently’.

Por último, introduzca la URL de destino en el campo “Destino coincidente”. Una vez introducida esta información, pulse el botón “Añadir redirección”.

Puede ir a la nueva URL para probar y asegurarse de que la redirección funciona correctamente.

El plugin también tiene la opción de hacer un seguimiento de los registros de errores 404. Simplemente haga clic en la pestaña ‘404s’ en la parte superior, y el plugin le mostrará los errores 404 recientes que se produjeron en su sitio desde que instaló el plugin.

404 Logs in Redirection plugin

Nota: Si acaba de activar el plugin Redirection, la página de registro 404 estará vacía. Solo empieza a mantener un registro de errores 404 una vez que el plugin está activado.

Bonificación: Diseñe una página 404 personalizada con SeedProd

Establecer redireccionamientos significa que los visitantes no deberían encontrarse con muchas páginas de error 404 en tu sitio web WordPress. Sin embargo, si aterrizan en una página 404, es una buena idea tener un diseño personalizado que ayude a sus usuarios.

Incluir su imagen de marca / marca personalizada puede hacer que su página 404 parezca más reputada. Si añades un formulario de contacto, los usuarios podrán indicarte la dirección que introdujeron y que provocó el error 404. Incluso puedes enlazar a tus entradas o productos más populares para que los visitantes se sientan tentados a permanecer en tu sitio web.

Por suerte, es fácil diseñar una página 404 personalizada con SeedProd. Es el mejor maquetador de páginas de destino de WordPress y viene con un montón de plantillas personalizables para páginas 404.

Building a custom 404 page for your WordPress website

Puede obtener más información en nuestra guía completa sobre cómo mejorar la plantilla de su página 404 en WordPress.

Guías de expertos sobre la gestión de errores 404 en WordPress

Ahora que ya sabe cómo hacer un seguimiento y redirigir los errores 404, puede que le interese ver otras guías relacionadas con la gestión de errores 404 en WordPress.

Esperamos que este artículo te haya ayudado a aprender cómo hacer un seguimiento de las páginas 404 y redireccionarlas en WordPress. También puedes consultar nuestra guía sobre cómo aumentar el tráfico de tu blog de forma sencilla o nuestra selección de los mejores ejemplos de páginas de error 40 4 para inspirar el diseño de tu sitio web.

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

46 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. Mrteesurez says

    Instead of redirection the 404 error page, why can one rebuild or customize it and make it a landing page that can even leads to conversion.
    Thanks for the article.

    • WPBeginner Support says

      You certainly can and it would depend on the use case for if a 404 page or a redirect would be better :)

      Administrador

  3. Moinuddin Waheed says

    Very often we encounter nice and intuitive 404 error pages with some navigation links to the other pages of the website.
    it is good idea to completely redirect them without them having to navigate themselves to other pages.
    Having said that, redirecting from 404 error pages, does it completely hide the error from users and just redirect behind the wall to some other pages of encountered 404 error or it shows 404 error and then redirects to other pages?

    • WPBeginner Support says

      It would depend on the specific content that would originally cause a 404, if you have a good replacement article then you can redirect to the new article.

      Redirecting would mean that your new page is shown instead of a 404 error.

      Administrador

  4. Jiří Vaněk says

    I would like to ask if it’s really a good strategy to perform redirects for 404 pages. Personally, I’ve taken the approach of creating a really nice 404 page where I apologize for the mishap and offer the reader other website content. This means showing them the latest 10 articles that might interest them. I’ve also designed the page to reduce frustration and give the reader a bit of amusement, even if they didn’t find what they were looking for. Why I’m asking: If I redirect to another page, won’t the user be confused that not only did they not find what they were looking for, but also they won’t see the information that the page doesn’t exist? Thus, preventing them from futilely searching for it and instead giving them a direct message that unfortunately, that content no longer exists?

    • WPBeginner Support says

      It heavily depends on your content, personal preference, and site for which would be best. This guide helps those who want to set up this redirect.

      Administrador

  5. Ralph says

    It is very important to take care of our 404 error as it may looks very unprofessional for our viewers. Once again you guys prove All in One SEO is great tool that can take care of many things that matter.

  6. sarah hawkins says

    We moved host and build and our new build pages load fine but the crawlers still locate pages from our old host that end in .html and these bring up error 404 pages but are not in my sitemap or build.
    Will these disappear over time with new search engine crawls or do i have to do anything? Any help would be very much appreciated.

    • WPBeginner Support says

      If they are important pages then it would normally be best to redirect them to the correct URL.

      Administrador

  7. Nikolinayoga says

    Hi, can you erase the 404 URL that the crawl found (without having them among the actual pages in the dashboard)

    I want to erase them but don´t know how to “locate them” lol
    Or in that case the only option is to redirect them to the homepage?

    Thank you

    • WPBeginner Support says

      It would depend on the specifics of what you mean. If the page does not exist then redirecting it to the home page would let search engines know the page does not exist

      Administrador

  8. Raymond Cyprian says

    Good I stumbled upon this. Had been looking for a way to redirect error 404.pages. I think this did a good job for me. Pls can I uninstall the plugin once I have completed all redirects as I already have slot of plugins and they are beginning to slow down my site.

  9. dimip says

    Nice… I have recently moved from http to https and i see in google search results both http and https links both works but i want for all non https link that the user is redirected to https. Does the above tool is what i need?
    Does google sees http to https as different website shall i use change of address tool or is enough that i have registered also the https ?
    Do you have a quide or plan to make one with easy steps http to https ?

      • Dimip says

        Thanks a lot :) I forgot to add that it was a migration from weebly to wordpress. The site is a perfect copy, all structure kept the same but at weebly was example.com/sample.html where at wordpress example.com/sample.
        I have given the new sitemap to Google and deleted the order without redirect that happened before a month plus now the https I have seen a major drop down in SEO in search results. Is there a way to recover from this? For example if I can find again the old sitemap from weebly? For the Google map section things are the same. Some advice please?

  10. Precious says

    Hello, thank you so much for this tutorial! It helped me redirect some of my 404 pages that result from my recent Blogger-WordPress move.
    However, I noticed I have A LOT of posts that need to be redirected to the right URL, judging from the number of tracked errors on the 404 tab. My question is is there a way to automate this? Some of these links are mobile links from my former blog with the m? added to them. The thing is it may take so long to do all those redirects one after the other. I am also concerned about losing the confidence of those who visit my site.
    How do I fix this? Is there a way to automatically redirect all the 404 pages to the right posts? Please help me.

  11. David Pascal says

    I have just installed it and did some redirection. I hope it works the way I expect. Anyway, its a nice plugin. Thanks for the helpful post about it.

  12. Will Franco aka Flywheel says

    Watch out with the Redirection plugin though!

    Redirection Plugin Trialing Slash Issue

    a. Issue with and without trialing /

    b. Currently, I have to setup two redirects per URL

    ​If you don’t the URL that’s not setup in redirection will 404.​

    the bug is easy to miss! and the plugin documentation doesn’t specify that you actually need to create two redirects per one.

    if you visit the target page by clicking the source first it will work

    and then if you visit the non-trailing slash it will work

    you have the visit the non-trailing slash first to get the 404 (i.e. like a visitor of your site)

    and it seems nobody is talking about this either!!!

    • Courtney says

      FYI… this is not a bug. This is what regex is for – you can check the “regex” box to use that option. Regular expressions allow you to create 1 redirection and then tell it to redirect with or without the trailing slash. Regex is how ‘normal’ htaccess file rules are created, which is what this plugin does via WP instead (unless you have it set up to use Apache or nginx). More about regex here – . GL.

  13. AL Spaulding says

    Great little plugin. Just handled a big batch of redirects on a site with it. I have a quick question though.

    While I am aware that the plugin must stay activated for the redirects to work, how long after the big “G” (google) has indexed the correct page(s) and ranked them accordingly wuld it be safe to remove the plugin?

    For example: if howdy/doody/funny is redirected to howdy/doody/funny/humor, and Google is now ranking and indexing howdy/doody/funny/humor, after you alert google of the repair in Webmaster Tools; is it not safe to remove the plugin then? Or is this permanent for the life of the site?

    Excuse the lengthy question. Thanks in advance. :)

  14. Silas Jura says

    Does this work if I am building a new website in WordPress (on a new domain) and replacing my site that is currently with Weebly (on our old domain)? We decided it would be easier to use a new domain (plus it’s more SEO friendly, I think) to build the new site on WordPress so the redirect would need to come from our old domain (TitanMgmtGroup.com) and redirect to the appropriate pages on our new domain (TitanPropertyManagement.co). What do you think, should I redirect the old domain or should I switch the WordPress site to the old domain once I’m done building it? Thanks for any help you can provide.

  15. Nur Ahmad Furlong says

    I really love the redirection plugin, it has however been misbehaving alot lately, I think the developers have not been keeping it up to date. It still works but can sometimes get you stuck with redirects you can’t remove even after deleting them.

    I’m sticl with a tricky problem. I converted atons of auto generated categories to tags and now have a ton of 404’s I need to somehow redirect automatically.

    Any ideas how I can bulk redirect 404 category links to the tag equavalent?

  16. Trent says

    I’ll give this plugin a try, sounds like it’ll work great. My only concern is that it will slow the site down. This leads me to a question: if I use the plugin now and fix all my 404s through 301 redirects with this app, then delete the app when I’m done redirecting all the pages, will the redirects stay, or will they go away with the app. In other words, do I need to keep the plugin installed and activated to keep the 301 redirects active? Thanks!

  17. Frank says

    And what does Google like this? Or will it give you a lowere rate?
    Google cleans up the 404 results automatically right?

  18. Brandon N. says

    What are “match”, “action”, and “regular expression” used for? Was hoping that would be covered in the article.

  19. javierojuel says

    Is it better to manage the 404 error pages in the htaccess file or with this plugin? Is there a performance issue using one of these two systems?

    • wpbeginner says

      @javierojuel This plugin is a must have for pretty much every blog. It is very well optimized. The point is that you can’t track 404 pages as well as this plugin does. Also by doing the hard code way, you can screw things up if you don’t know what you are doing. Redirection protects you at least to some extent.

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.