How to Move WordPress Blog to New Domain or Location Cómo pasar a WordPress blog nuevo dominio o ubicación
For blogger who self-hosts the WordPress blog publishing system on a web hosting server with own registered domain name, sometimes, you may decide to reorganize the blog link URL to make it tidier or to reflect new focus or theme of the blog. Por blogger que auto-organizadora de la publicación de blogs WordPress en un sistema de alojamiento web con servidor propio nombre de dominio registrado, a veces, usted puede decidir reorganizar el blog URL del vínculo para que sea tidier o para reflejar nuevo enfoque o tema del blog. If you decide to change the URL or link location of your WordPress blog due to changing of domain name (such as from http://www.old-domain.com/ to http://www.new-domain.com/) or the blog to another directory location (such as from http://www.domain.com/ to http://www.domain.com/blog/), there are some steps that should be done to ensure the proper migration and no breaking links. Si usted decide cambiar la URL o ubicación del enlace de su blog de WordPress debido al cambio de nombre de dominio (como el de http://www.old-domain.com/ a http://www.new-domain.com/) o el blog a otra ubicación del directorio (como el de http://www.domain.com/ a http://www.domain.com/blog/), hay algunos pasos que debe hacerse para garantizar el correcto y migración no romper los vínculos.
The tricky part when moving WordPress blog to another location is that WordPress is using absolute path in URL link instead of relative path in URL link location when stores some parameters in database. La parte difícil cuando se desplazan blog de WordPress a otro lugar es que WordPress está utilizando ruta absoluta en el enlace URL en lugar de ruta relativa a ubicación del enlace URL tiendas cuando algunos parámetros en la base de datos. Within blog posts’ contents itself, users may also use the old URLs when creating reference backlinks. Dentro de las entradas del blog 'propio contenido, los usuarios también podrán utilizar el antiguo URL de referencia durante la creación de vínculos de retroceso. All these values in the database will need to be changed when WordPress is moved. Todos estos valores en la base de datos tendrá que ser cambiado cuando se traslada WordPress. The following guide will show you which database fields that has references or values related to blog’s URLs that you want to modify. La siguiente guía le mostrará que la base de datos los campos que tiene referencias o valores relacionados con la URL del blog que quieres modificar. Note that this guide is not about how to move WordPress blog from one server or host to another new hosting service. Tenga en cuenta que esta guía no tiene que ver con la manera de avanzar WordPress blog de un servidor o host a otro nuevo servicio de alojamiento.
Once the blog has been moved (all files copy over in case of moving location or server or new domain name properly propagated across Internet for new domain name), the first thing to change is to tell WordPress the new blog location (wp-config.php should be no changes, and .htaccess file should be also no changes. If for some reason mod_rewrite rules for friendly URLs no longer works, you can always regenerate the .htaccess file via WP Administration’s Update Permalinks page). Una vez que el blog se ha movido (copiar todos los archivos más en el caso del traslado de ubicación o servidor o el nuevo nombre de dominio debidamente propagadas a través de Internet para los nuevos nombres de dominio), lo primero que hay que cambiar es decir a WordPress la nueva ubicación blog (wp-config. php debe haber cambios, y. htaccess archivo debe ser también sin cambios. Si por alguna razón mod_rewrite normas de amistad URL ya no funciona, siempre se puede regenerar el. htaccess archivo a través de la Administración de WP Actualizar Permalinks página). This value can be changed via WordPress Options page, but if you no longer able to access to old blog URL, you have to modify the value via MySQL database. Este valor se puede cambiar a través de la página Opciones de WordPress, pero si ya no poder acceder a viejo blog URL, usted tiene que modificar el valor a través de base de datos MySQL.
Note: The guide uses SQL statements based on Nota: La guía utiliza comandos SQL sobre la base de MySQL replace() function MySQL sustituir () to modify the database. para modificar la base de datos. To run SQL queries, login to MySQL database that houses WordPress tables via phpMyAdmin or login to the DB server and run MySQL client as root. Para ejecutar consultas SQL, acceso a base de datos MySQL que alberga los cuadros de WordPress a través de phpMyAdmin o de acceso a la base de datos de servidor y cliente de MySQL ejecutar como root.
To update WordPress options with the new blog location, use the following SQL command: Para actualizar las opciones de WordPress con el nuevo blog ubicación, utilice el siguiente comando SQL:
UPDATE wp_options SET option_value = replace(option_value, 'http://www.old-domain.com', 'http://www.new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl'; UPDATE wp_options SET option_value = sustituir (option_value, 'http://www.old-domain.com', 'http://www.new-domain.com') WHERE option_name = 'home' O option_name = 'siteurl';
After that you will need to fix URLs of the WordPress posts and pages, which translated from post slug, and stored in database wp_posts table as guid field. Después de que usted tendrá que fijar la URL de puestos de WordPress y páginas, que traducido del puesto de babosas, y se almacena en la base de datos wp_posts tabla como guía de campo. The URL values in this field are stored as absolute URLs instead of relative URLs, so it needs to be changed with the following SQL query: La URL valores en este campo se almacenan como absoluta URL en lugar de URL relativas, por lo que hay que cambiar con la siguiente consulta SQL:
UPDATE wp_posts SET guid = replace(guid, 'http://www.old-domain.com','http://www.new-domain.com'); UPDATE wp_posts SET guía = sustituir (guía, 'http://www.old-domain.com', 'http://www.new-domain.com');
If you have linked internally within blog posts or pages with absolute URLs, these links will point to wrong locations after you move the blog location. Si ha vinculado internamente dentro de las entradas del blog o páginas con URLs absolutas, estos enlaces punto a lugares mal después de pasar el blog ubicación. Use the following SQL commands to fix all internal links to own blog in all WordPress posts and pages: Use los siguientes comandos SQL para arreglar todos los enlaces internos a propio blog de WordPress en todos los puestos y las páginas:
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com'); UPDATE wp_posts SET post_content = sustituir (post_content, 'http://www.old-domain.com', 'http://www.new-domain.com');
Browse through WordPress blog to check if everything is okay. Navegar a través del blog de WordPress, para comprobar si todo está bien. You also need to re-login to WP Administration as authentication cookie has now became invalid due to different domain. También es necesario volver a acceder a WP Administración de cookies de autenticación como se ha convirtió en inválido debido a diferentes dominios.
IMPORTANT : You're reading a machine translated page which is provided "as is" without warranty. IMPORTANTE: Usted está leyendo una máquina página traducida que se proporciona "tal cual" sin garantía. Unlike human translation, machine translation does not understand the grammar, semantics, syntax, idioms of natural language, thus often produce inaccurate and low quality text which is misleading and incomprehensible. A diferencia de humanos traducción, traducción automática no entiende la gramática, semántica, sintaxis, modismos del lenguaje natural, por lo tanto, producen a menudo inexactos y de baja calidad texto que es engañosa e incomprensible. Thus, please refer to Por lo tanto, por favor, consulte original English article artículo original Inglés whenever possible. siempre que sea posible.
MDL blog postings now continue at MDL blog postings continuará ahora en Tip and Trick Sugerencia y Trick , and readers are welcome to join , Y los lectores son bienvenidos a unirse My Digital Life Forums Mi vida digital Foros .
Related Articles Artículos relacionados
- StatTraq - Wordpress Plugin for Site Statistic and Traffic Counter StatTraq - plugin para Wordpress sitio Estadística y contra el tráfico
- Integrate WordPress including Comments with bbPress Forum using bbSync Integrar la inclusión de los comentarios de WordPress con bbPress Foro utilizando bbSync
- How to Fetch and Show RSS Feeds on WordPress Blog (Atom/RSS Aggregator Plugins) (Excerpt) Cómo Fetch y Mostrar Feeds RSS en WordPress Blog (Atom / RSS Aggregator Plugins) (Extracto)
- SEO Friendly Rewrite Method to Move Website URL From Subdirectory to Root Parent Folder SEO Friendly reescribir método para mover la URL del sitio web de subdirectorio a raíz carpeta
- Paginating or Split WordPress Post or Page with NextPage in WordPress Not Working Paginating Split o WordPress Post o con NextPage en WordPress no funciona
- Technorati Incoming Links Plugin for WordPress Próximos enlaces Technorati plugin para WordPress
- How to SEO Optimize WordPress 2.5 Blog Web Page Title Without Optimal Title Plugin (Excerpt) Cómo optimizar SEO WordPress 2,5 Blog título de la página Web sin título óptima plugin (Extracto)
- PHP Fatal Error on Call to Add_Query_Var in Taxonomy.php After Upgrading to WordPress 2.5 RC2 (Excerpt) PHP Fatal Error en llamada a Add_Query_Var en Taxonomy.php después de actualizar a WordPress 2,5 RC2 (Extracto)
- Download Previous or Old Version of WordPress Descargar o anterior versión antigua de WordPress
- Disable WordPress 2.3 Core and Plugins Update Check and Notification Desactivar WordPress 2,3 básicas y complementos comprobar la actualización y la notificación

































January 11th, 2008 04:48 Enero 11, 2008 04:48
What’s wrong with using the builtin Export-Import functions and then just install a plugin to redirect the URLs? ¿Cuál es el problema con el uso de las incorporado Export-Import funciones y, a continuación, sólo instalar un plugin para redirigir la URL?
http://rmarsh.com/2006/09/23/moving-your-blog/
January 14th, 2008 04:45 14 de enero de 2008 04:45
Thanks so much for this! Muchas gracias por esto! I can’t believe this info isn’t on No puedo creer esta información no está en http://codex.wordpress.org/Moving_WordPress already! ya! I’ve been suffering through all sorts of 404’s ever since following those instructions! He venido sufriendo todo tipo a través de 404 desde la ajustarse a dichas instrucciones!
January 16th, 2008 01:20 16 de enero de 2008 01:20
[...] article en anglais chez MyDigitalLife explique également comment déplacer son blog WordPress. [...] Artículo en espagnol chez MyDigitalLife explique également comentario déplacer hijo blog de WordPress. C’est une méthode très proche de [...] C'est une Méthode très proche de [...]
January 22nd, 2008 07:24 22 de enero de 2008 07:24
THANKS!!! ¡GRACIAS! I thought I screwed things up royally by trying to organize my domain (and my life). Pensé que las cosas un poco jodidos por royally tratando de organizar mi dominio (y mi vida). This saved me. Esto me salvó.
Cheers ¡Salud!
February 8th, 2008 12:13 8 de febrero de 2008 12:13
[...] is to follow these instructions. [...] Es seguir estas instrucciones. I did. Yo lo hice. Result? Resultados? All images became broken after the move. Todas las imágenes se convirtió roto después del traslado. I followed these instructions to fix them in my SQL database. He seguido estas instrucciones para corregirlos en mi base de datos SQL. No [...] No [...]
February 9th, 2008 10:14 9 de febrero de 2008 10:14
[...] is to follow these instructions. [...] Es seguir estas instrucciones. I did. Yo lo hice. Result? Resultados? All images became broken after the move. Todas las imágenes se convirtió roto después del traslado. I followed these instructions to fix them in my SQL database. He seguido estas instrucciones para corregirlos en mi base de datos SQL. No luck. No hay suerte. The results from the SQL queries stated that [...] Los resultados de las consultas SQL declaró que [...]
February 19th, 2008 05:59 19 de Febrero, 2008 05:59
Thank you so much for the above instructions. Muchas gracias por seguir las instrucciones. You just saved me a lot of time! Usted me acaba de guardar un montón de tiempo! Much appreciated. Muy apreciada.
February 24th, 2008 00:23 24 de febrero de 2008 00:23
hey, i followed these instructions, but wordpress now just wont display anything. hey, i seguido estas instrucciones, pero ahora sólo wordpress costumbre mostrar nada. i get a white page when opening index.php… anyway, i can display single pages with example i obtener una página en blanco al abrir index.php… de todos modos, i solo puede mostrar las páginas con el ejemplo http://url.com/wordpress/?p=123
strange is that i won’t find any php errors, httpd errors or anything alike. extraño es que no voy a encontrar ninguna php errores, errores de httpd o algo igual. any suggestions? alguna sugerencia?
samuel Samuel
March 9th, 2008 15:54 9 de marzo de 2008 15:54
These SQL statements made my day a lot easier. Estas declaraciones SQL mi día un poco más fácil. Thanks! Gracias!
March 14th, 2008 13:00 14 de marzo de 2008 13:00
You rock and fixed my site. Usted roca y mi sitio fijo. Gracias.
March 14th, 2008 15:40 14 de marzo de 2008 15:40
i disabled all plugins, and the site worked again. i discapacitados todos los plugins, y el sitio trabajó de nuevo. maybe this helps. tal vez esta ayuda. bye adiós
March 18th, 2008 00:39 18 de marzo de 2008 00:39
[...] to mydigitallife for the hints on how to do [...] [...] Mydigitallife para los consejos sobre cómo llevar a cabo [...]
March 27th, 2008 11:59 27 de marzo de 2008 11:59
To fix images path after moving wordpress to another domain or directory you need to update wp_postmeta and wp_posts so that every link related to posts link to the new wp_content location. Para arreglar las imágenes en movimiento camino después de wordpress a otro dominio o directorio que usted necesita para actualizar wp_postmeta y wp_posts a fin de que cada uno de los eslabones relacionados con puestos de enlace para la nueva ubicación wp_content. We need to do a find and replace in some tables of the database. Tenemos que hacer un buscar y reemplazar en algunas tablas de la base de datos. Using phpMyAdmin You could use the following SQL code to search and replace de links. El uso de phpMyAdmin Se podría utilizar el siguiente código SQL para buscar y reemplazar de enlaces.
UPDATE tablename SET tablefield = replace(tablefield,”findstring”,”replacestring”); UPDATE tablename SET tablefield = sustituir (tablefield, "findstring", "replacestring");
One example would be: Un ejemplo sería el siguiente:
UPDATE wp_postmeta SET meta_value = replace(meta_value,”http://somedomain.com”,”http://somedomain.com/newdir”); UPDATE wp_postmeta SET meta_value = sustituir (meta_value, "http://somedomain.com", "http://somedomain.com/newdir");
UPDATE wp_postmeta SET meta_value = replace(meta_value,”http://somedomain.com”,”http://somedomain.com/newdir”); UPDATE wp_postmeta SET meta_value = sustituir (meta_value, "http://somedomain.com", "http://somedomain.com/newdir");
or the other way round depending on your case… (this was mine - changed to account root) o al revés dependiendo de su caso… (esto es mío - cambiado a la cuenta root)
UPDATE wp_postmeta SET meta_value = replace(meta_value,”http://somedomain.com/newdir”,”http://somedomain.com”); UPDATE wp_postmeta SET meta_value = sustituir (meta_value, "http://somedomain.com/newdir", "http://somedomain.com");
Note: You can use similar expressions to change links for “wp_posts” table, in this case the field to change is “guid”. Nota: Puede utilizar expresiones similares a cambiar los enlaces para "wp_posts" tabla, en este caso sobre el terreno para el cambio es "guía".
Note: In my case I had to Update Permalinks in Wordpress Admin->Options->Permalinks to update global linking. Nota: En mi caso tuve que Actualizar Permalinks en Wordpress Admin-> Opciones-> Permalinks para actualizar enlace mundial.
IMPORTANT: Before changing any table fields look carefully at the field values of the tables in the database so you can decide what values to change. IMPORTANTE: Antes de cambiar cualquier mesa de examinar cuidadosamente los campos en los valores de campo de las tablas en la base de datos para que usted pueda decidir qué valores para el cambio.
This solved my migration of wordpress because after changing files to the server account root directory everything was pointing to the old URL. Esta resuelto mi migración de wordpress, porque después de cambiar los archivos al servidor de directorio raíz en cuenta todo estaba apuntando a la antigua dirección URL.
Hope to help, I know what you guys are going through! Esperanza para ayudar, sé lo que ustedes están pasando! I had this problem a few days ago. Tuve este problema hace unos días.
Sorry if my English let You down but I’m just a poor Computer Engeneering Student from Portugal Lo siento si mi Inglés le permiten abajo pero soy sólo un pobre Estudiante de Ingeniería en Computación de Portugal
Have a nice life! Tiene una bonita vida! Peace! Paz!
March 27th, 2008 12:37 27 de marzo de 2008 12:37
Hey again! Hola de nuevo! Forgot to mention that I also had to change links to images inside post content! ¿Se olvidó de mencionar que también he tenido que cambiar los enlaces a las imágenes dentro de publicar contenido!
Like this: Al igual que esta:
UPDATE wp_posts SET post_content = replace(post_content,”http://somedomain.com/newdir”,”http://somedomain.com/”); UPDATE wp_posts SET post_content = sustituir (post_content, "http://somedomain.com/newdir", "http://somedomain.com/");
The method is always the same, find the old link in the table fields and replace by the new one. El método es siempre el mismo, encontrar el vínculo de edad en la tabla campos y sustituir por el nuevo.
Bye!:)
March 31st, 2008 13:53 31 de marzo de 2008 13:53
this occured to me after moving from one webhost to another. esto se me ocurrió después de pasar de un webhost a otro. i couldnt login as admin. i podría iniciar la sesión como administrador.
tried alot of the cheap fixes but the cheapest of all worked: intentado un montón de parches de la barata pero la más barata de todos los trabajado:
http://www.village-idiot.org/archives/2007/05/22/wp-emergency-password-recovery/
be sure to delete emergency.php after yer done! asegúrese de eliminar emergency.php después yer hecho!
April 1st, 2008 03:21 1 de abril de 2008 03:21
Thanks for this article. Gracias por este artículo.
April 28th, 2008 01:15 28 de abril de 2008 01:15
A really great help after moving my wp-installation. Una gran ayuda realmente en movimiento después de mi wp-instalación. Made my day Made mi día
Thanks Gracias
May 1st, 2008 17:16 1 de Mayo, 2008 17:16
Thanks for sharing how to move WordPress blog to new domain or location. Gracias por hacernos partícipes de cómo mover a WordPress blog nuevo dominio o ubicación.
May 5th, 2008 20:26 Mayo 5, 2008 20:26
[...] 1- Backup des données sur le serveur web 2- Backup de la base de données de l’ancien domaine (design.2803) 3- Création du dossier blogdecodesign.fr sur le serveur et de blogdecodesign.com avec une redirection 301 en htaccess vers le .fr 4- Upload de tout le dossier de l’ancien domaine vers le nouveau dossier (blogdecodesign.fr) 5- Création d’une nouvelle base de données 6- Upload de la base de données téléchargée au point 2 dans la nouvelle base de données 7- Exécution des lignes de commandes suivantes pour mettre à jour la base de données (source my digital life): [...] [...] 1 - Backup des données sur le serveur web 2 - Copia de seguridad de la base de données de l'ancien domaine (design.2803) 3 - Création du dossier blogdecodesign.fr sur le serveur et de blogdecodesign.com avec une redirección 301 en vers le htaccess. fr 4 - Carga de tout le dossier de l'ancien domaine vers le nouveau expediente (blogdecodesign.fr) 5 - Création d'une nouvelle base de données 6 - Carga de la base de données au téléchargée punto 2 dans la nouvelle base de données 7 - Exécution des lignes de commandes suivantes pour mettre à jour la base de données (mi fuente de vida digital): [...]
May 10th, 2008 05:41 10 de Mayo, 2008 05:41
they had the wild playing still there. que habían estado salvaje juego sigue ahí. work visit little done it. visita poco trabajo hecho. let it go. dejar ir. reminded damage the forests recordó a los daños de los bosques
May 16th, 2008 18:08 16 de mayo de 2008 18:08
thanks for sharing this howto gracias por compartir este howto