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 actualizar fácilmente las URL al trasladar su sitio 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.

¿Desea actualizar sus URL después de trasladar su sitio WordPress?

Puede llevar mucho tiempo editar manualmente cada entrada o página para sustituir las URL antiguas del sitio. Por suerte, existen plugins para WordPress que le ayudan a automatizar el proceso de actualización de las URL antiguas.

En este artículo, le mostraremos cómo actualizar fácilmente las URL al trasladar su sitio WordPress.

How to Update URLs when Moving your WordPress Site

A continuación figura una lista de los debates que trataremos en esta guía:

¿Cuándo debe actualizar las URL de su sitio WordPress?

Supongamos que ha trasladado un sitio de WordPress a un nuevo nombre de dominio. Entonces puede cambiar la dirección de WordPress y la dirección del sitio visitando la página Ajustes ” General desde su escritorio de WordPress.

Changing WordPress and site URLs

Sin embargo, esto no cambia las URL que haya añadido anteriormente a sus entradas y páginas. Tampoco cambia las URL de las imágenes que haya añadido a su sitio de WordPress.

Cambiar todas estas URL manualmente en cada entrada de blog y página puede llevar mucho tiempo. Además, siempre existe la posibilidad de que se te pasen algunas URL, lo que puede enlazar tu sitio web con enlaces rotos.

Por eso es importante actualizar sus URL cuando traslade su sitio web de WordPress.

Ayuda a proporcionar una experiencia de usuario sin problemas a sus usuarios, ya que encontrarán fácilmente la página que están buscando. La actualización de las URL también mejora el SEO de WordPress y permite a los motores de búsqueda encontrar nuevos contenidos para indexarlos.

Por último, pero no por ello menos importante, debes asegurarte de que se establecen las redirecciones 301 adecuadas desde tu antiguo dominio al nuevo para que los usuarios siempre sean redirigidos al lugar correcto.

Esto es extremadamente importante porque es probable que haya otros sitios web que estén enlazando a tu antiguo dominio, incluyendo entradas en medios sociales, Google y más.

Dicho esto, veamos cómo puede actualizar rápida y fácilmente las URL al migrar su sitio de WordPress.

Actualizar URL después de mover un sitio de WordPress

La forma más fácil de enlazar URLs antiguas en tu sitio web es usando el plugin Go Live Update Urls para WordPress. Es un plugin gratuito de WordPress que le permite actualizar URLs en sus entradas, páginas, imágenes, extractos, widgets y más.

Sin embargo, asegúrese de tener una copia de seguridad completa de su sitio WordPress antes de enlazar todos los enlaces. Esto le permitirá volver atrás fácilmente en caso de que algo vaya mal durante el proceso de actualización.

A continuación, deberá instalar y activar Go Live Update Urls en su sitio. 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 ” Go Live desde su panel de administrador de WordPress.

Select core tables to update

En esta página, puede actualizar las URL de sus entradas, comentarios, opciones, datos de usuario y otras áreas de su sitio marcando las opciones de las tablas del núcleo de WordPress en el plugin.

Las tablas del núcleo de WordPress son donde se organizan y almacenan todos los datos de su sitio web. Por ejemplo, una tabla wp_comments tendrá toda la información acerca de los comentarios en su sitio, junto con datos acerca de la persona que comenta.

Además, el plugin Go Live Update Urls también le permite actualizar URLs antiguas en los datos utilizados por diferentes plugins de su sitio web. Sin embargo, este es un paso opcional y puede omitirlo.

Update URLs in plugin data

A continuación, tendrá que desplazarse hasta la sección de actualización de los antiguos enlaces a las nuevas URL del sitio.

Introduzca la “URL antigua” y la “URL nueva” en los campos correspondientes.

Enter old and new URL

Una vez hecho esto, basta con hacer clic en el botón “Actualizar URL”. El plugin actualizará todas las URL de tu sitio al nuevo dominio.

Redirigir entradas y páginas después de actualizar URLs

Una vez actualizadas todas las URL de su sitio web, deberá establecer redireccionamientos 301 para todo el sitio al nuevo dominio. Esto conservará los enlaces de los sitios que enlazaban con su antiguo dominio y evitará errores 404.

La forma más sencilla de realizar una redirección completa del sitio es utilizando el plugin All in One SEO (AIOSEO). Es el mejor plugin SEO para WordPress y cuenta con la confianza de más de 3 millones de profesionales.

AIOSEO ofrece un potente gestor de redirecciones que le permite redirigir las URL de sitios web antiguos a otros nuevos en tan solo unos clics. El plugin también ayuda a realizar un seguimiento de los errores 404 de tu sitio para que puedas encontrar y enlazar rápidamente cualquier enlace roto.

Para este tutorial, utilizaremos la versión Pro de AIOSEO porque incluye el gestor de redirecciones y otras características como mapas del sitio, migas de pan personalizadas y marcado de schema. También puede probar la versión gratuita de A IOSEO para primeros pasos.

Lo primero que tienes que hacer es instalar y activar el plugin AIOSEO en tu sitio. Si necesitas ayuda, consulta nuestra guía sobre cómo instalar un plugin de WordPress.

Una vez activado, tendrá que ir a All in One SEO ” Escritorio desde su panel de administrador de WordPress. Ahora haga clic en el botón “Iniciar el asistente de configuración” para configurar el plugin.

AIOSEO dashboard launch setup wizard

Todo lo que tiene que hacer es seguir los pasos del asistente de configuración. Para obtener más información, consulte nuestro tutorial detallado sobre cómo establecer All in One SEO para WordPress.

1. Establecer redireccionamientos de sitio completos

Este método es muy útil cuando está fusionando dos sitios de WordPress separados en uno o si va a establecer una nueva instalación de WordPress para el nuevo dominio, ya que gestionará una redirección completa del sitio sin añadir ningún código.

Simplemente diríjase a All in One SEO ” Redirecciones desde su área de administrador de WordPress y haga clic en el botón ‘Activar redirecciones’.

Activate AIOSEO redirects

Una vez activado, tendrá que ir a la pestaña “Redirección de todo el sitio” y activar el conmutador “Reubicar sitio”.

A continuación, puede introducir su nuevo nombre de dominio en la opción “Reubicar al dominio”.

Full site redirect

Después de introducir la URL de su nuevo dominio, no olvide hacer clic en el botón “Guardar cambios” para establecer los ajustes. AIOSEO redireccionará todos los enlaces de tu sitio a la nueva URL.

2. Establecer redireccionamientos individuales de entradas y páginas

AIOSEO también ofrece diferentes tipos de métodos de redireccionamiento que puede utilizar para establecer redireccionamientos individuales de entradas y páginas.

Recomendamos seleccionar el tipo de redirección ‘301 Moved Permanently’. Esto indica a su navegador que la página se ha movido a un nuevo destino de forma permanente y que no desea volver a moverla.

Add redirection for old links

Una vez que haya rellenado estos datos, simplemente haga clic en el botón “Añadir redirección”.

Puedes ver los diferentes redireccionamientos que has creado desplazándote hacia abajo y viendo los registros.

Redirection logs in AIOSEO

Puede ver las URL, el número de personas que han visitado el enlace, el tipo de redirección que ha establecido y también elegir si desea activar o desactivar la redirección.

En la pestaña “Ajustes”, en Redirecciones, también puedes establecer redirecciones a nivel de servidor, que son mucho más rápidas. El método por defecto se establece en PHP, que es la forma más sencilla de redirigir URL antiguas, y no requiere ninguna configuración del lado del servidor.

Pero puede seleccionar ‘Servidor Web’ como método de redirección y luego elegir Apache o NGINX como su servidor web. No recomendamos este método para principiantes ya que requiere conocimientos técnicos.

Select the Redirect Method

Cuando actualice sus URL a un nuevo dominio, también es esencial que vigile los enlaces rotos. Se trata de enlaces que ya no existen y muestran una página de error 404. Pueden producirse si alguna URL no se actualiza correctamente.

Con AIOSEO, es muy fácil hacer el seguimiento y corregir las páginas de error 404 utilizando el Gestor de redireccionamientos.

Para empezar, puede dirigirse a All in One SEO ” Redirecciones desde su escritorio de WordPress.

A continuación, haga clic en la pestaña “Ajustes” situada debajo de “Redirecciones” y, a continuación, haga clic en el conmutador para activar las opciones “Registros 404” y “Registros de redirecciones”.

Enable 404 logs

Usando AIOSEO, puede elegir el periodo de tiempo para mantener sus registros de errores 404. Le recomendamos que seleccione no más de un mes para un rendimiento óptimo y sin problemas de WordPress.

Una vez activadas estas opciones, haga clic en el botón “Guardar cambios” de la parte superior de la página para guardar sus ajustes.

Ahora debería ver una nueva pestaña “Registros 404” bajo Redirecciones en AIOSEO. En esta pestaña, el plugin hará un seguimiento y mostrará las páginas de error 404 de tu sitio web.

Una cosa importante a tener en cuenta es que al principio no verá ningún dato en la pestaña de Registros 404. El plugin solo empezará a registrar los enlaces rotos una vez que hayas activado los ajustes.

Sin embargo, una vez que el ajuste haya estado activo durante algún tiempo, siga adelante y haga clic en la pestaña “Registros 404”. Verás un enlazar roto en la columna URL, el número de visitas en la columna Hits y la fecha del último acceso.

Click 404 logs menu option

Para corregir cualquier enlace roto, simplemente haga clic en el botón “Añadir redirección” para la URL respectiva. AIOSEO mostrará ahora opciones para establecer la redirección para la URL de error 404.

Deberá enlazar el nuevo enlace en el campo “URL de destino” y seleccionar “301 Movido permanentemente” como tipo de redirección en el menú desplegable.

Add redirect for your broken link

A continuación, siga adelante y haga clic en el botón “Añadir redirección” para enlazar el enlace roto en su sitio web.

Para comprobar si la redirección funciona, visite la URL antigua. Si se le redirige a la nueva URL, significa que ha corregido correctamente las páginas de error 404.

Nuestras mejores guías para trasladar su sitio WordPress

Ahora que ya sabe cómo actualizar las URL al trasladarse a un nuevo nombre de dominio, quizá le interese consultar algunas de nuestras otras guías sobre cómo trasladar su sitio web:

Esperamos que este artículo te haya ayudado a aprender cómo actualizar URLs al trasladar tu sitio WordPress. También puedes consultar nuestra guía sobre cómo conseguir un certificado SSL gratuito o nuestra selección de los mejores servicios de marketing por correo electrónico para pequeñas empresas.

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

127 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. mohadese esmaeeli says

    I know that if, for any reason, I decide to change my site’s domain, I need to consider some crucial points to preserve its SEO. How long does it take for our links to return to their previous positions in Google search results?

    • WPBeginner Support says

      There is no guaranteed timeframe for your page rankings, following the steps from this guide will help with minimizing the time the rankings may have trouble.

      Administrador

  3. Ben Jamir says

    I installed activated, unfortunately, it failed to change the images URL. After switching my site to https, i had to change my site address to a non-www
    Example : from http:www.example.com to https:example.com

    SSL is properly activated, my site is up but most of the images still points to the www version of my site.

    The plugin report was zero changes done for all attachment files.

    Any idea or advice will be helpful

    Thank you

    • WPBeginner Support says

      You would want to ensure the options were checked below the url and that the url you entered was correct as well for the most common reasons

      Administrador

  4. Ben Jamir says

    I am impressed with all the positive comments. I am planning to install and try this plugin for changing my image URLs.
    One thing I want to know is that if the plugin succeeds and does what it’s supposed to do, do we need to keep the plugin installed and activated?
    Once the job is done can we deactivate the plugin?
    Will deactivating the plugin reverts the changes it made ???

    Thank you

    • WPBeginner Support says

      You can delete Velvet Blues after it has updated your URLs without them being reverted

      Administrador

  5. Caroline says

    I tried Velvet Blues Update URLs, but it doesn’t work in custom fields. Is there any other way to update custom fields?

    • WPBeginner Support says

      Did you check the option for it to update custom fields? You may want to reach out to the plugin’s support if that option isn’t having it update your fields

      Administrador

  6. Abdessamad says

    Thanx for this article it was very helpful, I have a question though, Is there a way to automatically remove the old urls from my database ?

    • WPBeginner Support says

      It would depend on what you mean, this method should handle links in posts and pages but in general, if you have your old url in plugins we do not have a recommended method at the moment.

      Administrador

  7. Linda says

    Thanks for telling us about this plugin. Haven’t tried it yet, but will soon. I was working away on the subdomain we’re using to create our new site, and adding links when I suddenly thought, “Bet these links don’t get updated automatically. Do I need to record every one I’ve created so I can update it later?”

    So glad to know there’s a plugin that will do most of this for us.j

    Thank you,

    Linda

    • WPBeginner Support says

      Well done, you can certainly update your links manually, the plugin is an option for those who don’t want to manually go through all of their content on their site to update the links :)

      Administrador

  8. Dionne says

    Hi there,

    I managed to update all textlinks using broken link checker. But buttons (wp bakery) are not affected. Will this plugin update the link in buttons too?

  9. Nidhi says

    Hey will it change all my Quicklinks in each page go my footer. I have different Quicklinks and buttons to the specific pages and all the links needs to be changed. SO will it work ???

    Also my wordpress website is under wordpress folder so the link also mention the wordpress folder on the website If I will change the folder name and then put a link in
    old saying “www.example.test/wordpress” and
    new saying “www.newsite.com/renamefoldername”

    SO will this work or do I manually have to change the link for each pages

    • WPBeginner Support says

      Depending on how the quick links were created it likely will not update those but it will be able to update the folder.

      Administrador

  10. Naga Kishore says

    The same issue happened on one of my client website after migration.

    when i am trying to add a new image in the slider it is not with updating the new urls & showing 404 errors.

    After using the plugin Velvet Blues Update URLs the issue is resolved. Thanks for sharing the article.

  11. Rob says

    Hey I’m having an issue,
    Whats happened is I initially changed my site URL. Now whats happened is that whenever someone clicks on my blog name (when they see my comments on another post) they get a broken link to the old URL. If anyone knows how to fix this that would be great.

    • WPBeginner Support says

      You may want to try resaving your new url and resaving your permalinks in case that was cached somewhere

      Administrador

  12. Jp says

    Hi,

    Velvet blues worked great for regular images in posts but not featured images. Do you know about a plugin that supports changing featured images URLs? I’m storing images in a different server in the new version of my site.

    • WPBeginner Support says

      It should also update featured images, you may want to reach out to the plugin’s support if it is not updating properly.

      Administrador

  13. John Doe says

    Does not work for me. However, I may be trying to do something this plugin does not support – moving from non-www to www subdomain.

  14. Asrar says

    Hi Everyone
    i want to upload my local wordpress site to online, but when i download all the files and want to change the links (localhost/websitename/ ) there is no such links available except two links. As there must be many lins to be changes bu i dont see . Why the links are missing ?
    anyone knows ?

  15. Yogi says

    The Velvet Blues Update URLs plugin is excellent. I want to share my experience with it. After i did my URL change with it. I still see the error on opening all post. I solved it by going to “Settings > Permalinks” section and then saved my permalinks once more by clicking the “Save Changes” button. This solved my problem and will also solve yours if you still get some error.

  16. Jhavinder says

    I am using the same domain but i have changed my hosting. After that my all images in post are not showing. How can i fix this problem.

  17. Shawn Rebelo says

    Velvet blues is great, but misses one thing. Does not change URL’s in options if URL’s are there. Say for Custom CSS. Also, anyone have issues of you changing the URL’s, see changes in the DB. But when you go edit the page, they are still say http, when they should be https? Seems to only happen with image URL’s.

  18. jan says

    I used this wonderful plugin in the past, always worked fine. But this time it only changed the full URL links, not the internal links that don’t include the full URL. Any ideas on how to fix this?

  19. Blessing Mashoko says

    I had the same issue I just changed my permalink settings to “plain” and changed back to the permalink setting I was using and somehow it works.

  20. Priscilla says

    The plugin hasn’t been supported in over 1 year and is untested with WP version 4.9.1. Nevertheless, I gave it a try, but unsurprisingly, it didn’t work, giving a MySQL server error. So much for a once very good plugin that the developer decides to abandon!

  21. Kokila says

    Post update of URL, images are not showing up properly in wordpress admin site. Please comment on this and also URL update didn’t happen for images on Media folder

  22. Gautam Sharma says

    After migrating from local to server, I’m getting 404-File not found error. Only my Home Page is loading, rest are not working, I have changed the permalinks also! Please help…

  23. Emma Booth says

    Is there anyway I can avoid links from social media breaking once I have done a re-direct?

    I’m trying to re-direct from a wordpress.com blog to a blog on a new domain on wordpress.org, however I’m concerned previous links in tweets and linkedIn posts will break….any way to avoid this?)

  24. Neha Prajapati says

    I changed my server keeping same web URL. and properly configured.
    But why my all old post r showing in google search with page not found.
    What to do??

  25. Peter says

    I use Velvet Blues with very good results. However, it is important to note that VB will not change URL in widgets or if there are URLs in your CSS code. These will need to be manually changed.

  26. Jeremy says

    In response to ADITYA’s comment about this being a substitute for 301 redirects.

    I would say that a find and replace plugin is NOT a substitute for 301 redirects. 301 redirects are still valuable from an SEO standpoint, as well as for users who may have bookmarked or are accustomed to using your old domain.

    Just using this plugin would result in your users hitting an old site that is no longer being maintained or a site that’s been taken offline.

    On a personal note, I definitely recommend Migrate DB Pro for this type of activity. It’s worth the money, if you’re doing local development.

  27. Jennifer says

    Hi,

    Does this plug in also work for updating links that are embedded inside tables that I created with TablePress? I also have a number of URLs as part of image descriptions for photos that I added using FooGallery, and i assume that these are stored inside the database, rather than in the HTML for the pages – is Velvet Blues able to update these as well, or do I need a different plug in for that task? My site (which I am going to move from its current directory to a subdirectory of my site that I want to use for an add-on domain) contains about 13.500 images and 500 tables, and it would be extremely tedious to check every single one for links, and then manually replace them with the new URL.

    Thanks.

  28. Vidy says

    Cool plugin and great tutorial, I’ve just migrate my domain and I have 300 post. I searched exactly the plugin u reviewed. Thanks for your help. I didn’t needed to replace my internal link one by one.

  29. Michelle Z. says

    Question: I updated my theme, and the blogroll is now on a secondary page, when it used to be on the homepage. So I have the same url but different path. Check it out:

    Old Link (we want to maintain these):

    New Link:

    I tried adjusting the permalinks but its not working…yet. Any ideas?

    Thanks so much!

  30. Sourabh Saraf says

    Thanks for the wonderful tut , i usually go for backupbuddy for my migration but sometimes due to server limitations backupbuddy doesnt work . This trick comes handy everytime i manually migrate wordpress and works like a charm .
    cheers
    Sourabh

  31. Sonali says

    My old and new site urls are the same since I migrated my site content from wordpress.com to wordpress.org. Not sure how to use this and get those errors fixed…Please advice! Thanks!

  32. Melissa says

    I used this plugin after migrating from Blogger to WordPress. None of my image URLs are updating…so none of my images are currently showing on my blog (www.fitchocoholic.com). Can anyone help me with this? I’m freaking out!

  33. jatinder says

    I installed this plugin and is working perfectly.

    But my question is, why doest it work on the content build using Content Builder plugins like Visual composer or Muffin tool. i have certain hard-coded links it does change those link.

    Any comments??

    • Josh says

      Hi Jatinder.
      The reason this plugin doesn’t work for content inside Visual Composer is because Visual Composer stores the links in a strange way. If you click on “Classic Mode” in Visual Composer you’ll see that links don’t look like proper URLs.

      For example, I have a VC button that points to this link:

      example.com/services/adwords/

      But in Classic Mode I can see that the link looks like this:
      http%3A%2F%2Fexample.com%2Fservices%2Fadwords%2F

      So this will be why Velvet Blues doesn’t change these links.

      To fix the content, without having to manually edit every link, you’ll need to run another search and replace plugin and search for the urls using this structure.

      • Jeremy says

        Good tip, ive been trying to work this out for a while now, didn’t even occur to me that the url would have been done like that. Hooray.

  34. marcelo araujo says

    hi, cool post. some media does not change. specifically the media that is added in theme options. any command to change all urls in all database? i change mine from .org/site for .org.br/site
    tks.

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.