WordPress move site to new domain

New Page

Mueva su WordPress site to another domain

As a guide, mostramos cómo mover manually a WordPress site exists a different domain name.

Step 1 – Verify that your current site is working Step 2 – Upload your website files Step 3 – Export your database Step 4 – Upload files to your new domain Step 5 – Import your database Step 6 – Go to wp_options Step 7 – Update siteurl and home Step 8 – Update login details in wp-config Step 9 – Verify your site on your new domain Step 10 – Fix permalinks (optional) Step 11 – Fix broken images (optional) Step 12 – Check your site again (optional) Tip: Sound too hard? So why not use our 1-click migration tool? It is included in all of our WordPress hosting packages. Step 1 – Check that your current site is working

Open your current WordPress site and check that everything is working.

wp-migrate-manual-01.png

Step 2 – Upload Your Website Files

First, you need to create a backup of your website, both your webspace files and your database.

Download your website files to your computer and save a copy of the files to a separate folder on your computer for backup.

Check out one of our guides if you want help with this:

  • Backup your web space with file manager
  • Back up your web space via FTP

Step 3 – Export your database

Export your database with phpMyAdmin and save a copy of the exported sql file to a separate folder on your computer as a backup.

If you need help, check out our guide to backing up your database.

Step 4 – Upload files to your new domain

Connect via FTP and upload your backup to your new domain’s web space. If you made your backup with the file manager, don’t forget to unzip it before downloading it.

wp-migrate-manual-02.png

Step 5 – Import your database

Import your database backup into phpMyAdmin. See our guide on how to import a database, if you want help.

Step 6 – Go to wp_options

Une fois votre base de données importée, localisez la table appelée wp_options dans le menu de gauche.

wp-migrate-manual-03.png

Étape 7 – Mettre à jour le siteurl et l’accueil

Ensuite, vous devez changer l’emplacement de votre site dans la base de données.

  1. Dans wp_options, localisez siteurl et home . Habituellement, ces enregistrements se trouvent en haut du tableau aux lignes 1 et 2.
  2. Pour siteurl , cliquez sur le champ sous option_value et remplacez l’ancien domaine par votre nouveau nom de domaine.
  3. Press enter to save.
  4. Do the same for home.

wp-migrate-manuel-04.png

Step 8 – Update connection details in wp-config

You now need to replace the login details from your old domain, with those of your new domain in WordPress. We have created a guide on how to update the connection details in case you need some help.

wp-migrate-manuel-05.png

Step 9 – Check your site on your new domain

Take your old site offline, to make sure it doesn’t interfere with your new site. You can do this by moving the files to a different folder.

Open your new domain in your browser and check how it looks. If everything is working as intended you are now done. However often you still need to do some manual fixes.

wp-migrate-manuel-06.png

Step 10 – Fix permalinks (Optional)

If you experience that you get a 404 error when you try to open links on your site, the Permalinks are broken. Luckily it is very easy to fix this.

  1. Log in to your WordPress dashboard.
  2. Click Settings and then Permalinks
  3. Scroll down and click Save Changes .

wp-migrate-manuel-07.png

Step 11 – Fix broken images (Optional)

If you experience that images don’t show correctly, this means that the links are still referring to the old domain. You can fix this by reinserting images manually.

When you have a website with a lot of images you can try a plugin called Better Search Replace. It automatically replaces your old domain with your new domain in your database.

Note: Plugins are third-party products and we cannot help you. Please contact the plugin manufacturer if you encounter any issues. We recommend backing up your website files and database before making any changes.

  1. Connectez-vous à votre tableau de bord WordPress.
  2. Cliquez sur Plugins puis sur Ajouter nouveau .
  3. Recherchez Better Search Replace et installez le plug-in portant ce nom.
  4. Cliquez sur Activer pour rendre le plugin actif.
  5. Cliquez sur Outils et Better Search Replace .
  6. Recherchez l’ancien nom de domaine et remplacez-le par le nouveau nom de domaine.
  7. Sélectionnez les tables dans lesquelles vous souhaitez effectuer la recherche. Vos publications se trouvent dans la table wp_posts, mais vous pouvez généralement sélectionner toutes les tables en toute sécurité.
  8. Uncheck the Run as dry box and click Run Search/Replace . If you want to test before making any changes, leave the Run as dry box checked.

wp-migrate-manuel-08.png

Step 12 – Check your site again (optional)

In most cases, your website is now successfully moved, including images and links. If you’re still having trouble, we recommend checking out the WordPress codex for more help.

wp-migrate-manuel-09.png

Related Articles:

Change your WordPress theme from the database Disable WordPress plugins in phpMyAdmin

How to move easily WordPress has a nuevo dominio (without losing the SEO)

Ultima actualización en27 de septiembre de 2021por Equipo editorial | Divulgación del lector Divulgación : Nuestro contenido está respaldado por el lector. 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.

Shares 1.1k Share Tweet Share Facebook Messenger WhatsApp Email

¿Quieres mover tu sitio de WordPress a un nuevo dominio? Cambiar el nombre de dominio de su sitio web puede afectar significativamente su clasificación de SEO, por lo que es un proceso que debe realizarse con mucho cuidado.

Si bien no puede evitar las fluctuaciones temporales de SEO al migrar su sitio web a un nuevo dominio, definitivamente puede minimizar el impacto y recuperar rápidamente su tráfico de búsqueda y clasificaciones.

En esta guía, le mostraremos la forma correcta de mover WordPress a un nuevo dominio sin perder el SEO.

Migrer un site Web de WordPress à un nouveau nom de domaine sans perdre le référencement Migrer un site WordPress vers un nouveau nom de domaine sans perdre le référencement

Este es el proceso de 5 pasos que cubriremos para ayudarlo a migrar su sitio de WordPress a un nuevo nombre de dominio:

  1. Cree un paquete duplicador de su sitio de WordPress
  2. Cree una base de datos para su nuevo nombre de dominio
  3. Descomprima WordPress en el nuevo dominio
  4. Configurar redireccionamientos 301 permanentes
  5. Notificar a Google sobre el cambio

Videotutorial

Suscríbete a WPBeginner

Si prefiere instrucciones escritas, siga leyendo.

Lo que debe saber antes de cambiar de dominio

Antes de comenzar, hay algunas cosas que debe saber.

El proceso de transferencia a un nuevo dominio afectará temporalmente su clasificación en los motores de búsqueda, ya que Google y otros motores de búsqueda deberán adaptarse a los cambios.

Yes, this will also temporarily affect your search traffic as well. Please keep in mind that this is normal, and it happens to all websites that switch to a new domain.

However, you can dramatically decrease the SEO impact by following this guide. We will show you the right way of moving your WordPress site to a new domain name, setting up proper 301 redirects, and notifying search engines.

Please note that this guide is not for moving WordPress site to a new host. This is for switching a domain name only. While the process is similar, there are a few extra steps involved in this process. These extra steps will help you to protect your SEO rankings and traffic.

Lastly, if your old website is on WordPress.com, then you need to follow the instructions in our guide on how to move from WordPress.com to WordPress.org instead.

Pre-Steps: What You Need to Get Started

In this guide, we are assuming that you have your WordPress website setup on oldsite.com, and you are trying to migrate it to newsite.com.

We are also assuming that you already have a WordPress hosting account, and you are familiar with your web hosting control panel.

You’ll also need to know how to use an FTP client like FileZilla, or how to edit files using the File Manager app available under your hosting account dashboard.

In case you don’t have a web hosting provider or are looking to switch to a new one, we recommend using Bluehost (great for small sites + comes with a free domain) and either SiteGround or WP Engine (great for larger sites or online stores).

Once you have those things in place, you’re ready to start the process!

Step 1: Create a Duplicator Package of Your WordPress Site

The first thing you need to do is create a full backup of your WordPress site. We’ll use this backup to create a duplicate of your website, so you can set up the redirects properly from your old domain to the new one.

While there are many WordPress backup plugins available, we’ll be using Duplicator which is a free backup and migration plugin.

Let’s start by installing and activating the Duplicator plugin on your old domain name. For more details, see our step by step guide on how to install a WordPress plugin.

Once activated, the plugin will add a Duplicator menu item in your WordPress admin. You need to click on the Duplicator menu, and then click on the ‘Create New’ button to create a new package, or copy of your WordPress site.

Créer un nouveau package Duplicateur Créer un nouveau package Duplicateur

After that, you will be asked to click on the Next button to continue.

Duplicator will now run the website duplicator wizard. First, it will run some tests to see if everything is in order. If the plugin finds an issue, then you will see a warning with instructions.

If all items are marked ‘Good’, then click on the ‘Build’ button.

Construire le paquet Construire le paquet

The plugin will now start creating a duplicator package of your website files. This process may take a few minutes depending on the size of your site.

Once finished, you’ll see download options for the Installer and the Archive package. You need to click on the ‘One-click download’ link to download both files to your computer.

Télécharger le package Duplicateur Télécharger le package Duplicateur

The archive file is a complete copy of your WordPress files. It includes your WordPress themes, permalinks settings, plugins, uploads, and any other files created by WordPress plugins.

The installer script is a PHP file that will automate and run the WordPress migration by unpacking the archive file.

Step 2. Create a Database for Your New Domain Name

Before you can move your WordPress site to the new domain, you’ll need a new SQL database to unpack WordPress on your new domain name.

If you have already created a database, then you can skip this step.

To create a database, you need to visit your hosting account’s cPanel dashboard, scroll down to the ‘Databases’ section, and then click on the ‘MySQL Databases’ icon.

Création d'une nouvelle base de données Création d'une nouvelle base de données

Note: Your hosting control panel may look slightly different than the screenshots. However, you should still be able to find a Databases section with an option to create a new database.

Simply provide a name for your database and then click on the ‘Create Database’ button.

cPanel will now create a new database for you. After that, you need to scroll down to the MySQL Users section.

Next, provide a username and password for your new user and click on the ‘Create a user’ button. Make sure to note the username and password in a safe place.

Ajout d'un nouvel utilisateur de base de données MySQL Ajout d'un nouvel utilisateur de base de données MySQL

The new user you just created still does not have permission to work on the database. Let’s change that.

Scroll down to the ‘Add User to Database’ section. First select the database user you created from the dropdown menu next to the ‘User’ field. Then select the new database you just created and click on the Add button.

Ajouter un utilisateur à la base de données Ajouter un utilisateur à la base de données

Your database is now ready to be used for moving WordPress to the new domain name. Make sure to note down the database name, username, and password. You’ll need this information in the next step.

Step 3. Unpack WordPress on Your New Domain Name

Now you need to upload the Duplicator files you downloaded earlier to your new domain name.

The Duplicator package includes your WordPress installation as well. This means you don’t need to install WordPress on your new domain.

First, connect to your domain name using an FTP client. Once connected, make sure that the root directory of your website is completely empty.

After that, you can upload the archive and installer files to the root directory (usually it is public_html).

Téléchargez les fichiers Duplicator vers un nouveau nom de domaine Téléchargez les fichiers Duplicator vers un nouveau nom de domaine

Once both files have finished uploading, you are now ready to unpack WordPress.

Open a new browser tab and go to the following URL:

http://example.com/installer.php

Don’t forget to replace example.com with your new domain name. This will launch the Duplicator migration wizard.

Assistant Duplicateur Assistant Duplicateur

The installer will look for the archive file. You need to check the terms checkbox and click on the Next button to continue.

Now, the installer will ask you to configure your WordPress database information.

Your host will likely be localhost. After that, you will enter the details of the database you created for your new domain name in the earlier step.

Connectez votre nouvelle base de données Connectez votre nouvelle base de données

Once done, click on the next button to continue.

Duplicator will now unpack your WordPress database backup from the archive into your new database.

Next, it will ask you to update the site URL or Path. You shouldn’t have to change anything since it automatically detects the new URL of your domain name and its path.

If it doesn’t, then you can change the URL to your new domain name. After that, click on the next button to continue.

Mettre à jour les URL des sites Mettre à jour les URL des sites

Duplicator will now finish the migration.

You can click on the ‘Admin Login’ button to enter the WordPress admin area of your website on the new domain name.

Fin de la migration de WordPress vers un nouveau nom de domaine Fin de la migration de WordPress vers un nouveau nom de domaine

Step 4. Set Up Permanent 301 Redirects

The next step is to point users arriving on your old domain name to the new domain. This is done by setting up 301 redirects.

301 redirects are very important for SEO and user experience. Adding them will allow you to automatically redirect users and search engines to your new domain name.

In other words, whenever someone lands on a post or page on your old domain, they will be automatically redirected to the same post or page on your new domain, instead of seeing a 404 error.

To keep your redirects in place, you’ll need to keep your old WordPress installation active so it can continue to redirect to the new one you just created.

There are two ways to set up the redirects. The first method is easy and just takes a few clicks. The second method requires you to edit files manually.

Method 1. Set Up 301 Redirects With All in One SEO

For this method, we’ll be using All in One SEO (AIOSEO). It is the best WordPress SEO plugin on the market and allows you to easily optimize your WordPress website for SEO.

First, you need to install and activate the All in One SEO plugin on your old domain. For more details, see our step by step guide on how to install a WordPress plugin.

Note: You’ll need at least the Pro version of the plugin to access redirect manager addon. You can also set up AIOSEO on your new WordPress site to boost your search engine rankings and traffic even more.

Upon activation on your old domain, you need to visit All in One SEO » Redirects page and click on the Activate Redirects button.

Redirections Activar Activer les redirections

Next, you need to switch to the ‘Full Site Redirect’ tab and turn on the ‘Relocate Site’ toggle. After that, you need to enter your new domain name next to ‘Relocate to domain’ option.

Redirection complète du site Redirection complète du site

Don’t forget to click on the Save Changes button to store your settings.

Method 2. Manually Set Up Redirects to New Domain

This method requires you to edit the WordPress .htaccess file on your old domain name.

First, you need to connect to your old site using FTP and edit the .htaccess file.

This will be located in the same directory as your wp-includes or wp-admin folder. Open the .htaccess file and paste the following lines of code at the very top:

1

2

3

#Options +FollowSymLinks

RewriteEngine on

RewriteRule ^(.*)$ http: //www.newsite.com/$1 [R=301,L]

Note: Replace newsite.com with your new domain in the above code.

Once you have applied these changes, then visit your old domain name. It should automatically redirect you to the new domain.

If it doesn’t, then it means the redirection is not setup properly, and your server likely doesn’t support redirect rules. You need to contact the support team at your web hosting company to get RewriteEngine turned on.

Step 5. Notify Google About Your New Domain

Ahora que movió WordPress a un nuevo nombre de dominio y configuró redireccionamientos, es hora de notificar a Google sobre su cambio de dirección. Esto ayudará a Google a encontrar el dominio de su nuevo sitio web rápidamente y comenzar a mostrarlo en los resultados de búsqueda.

Primero debe asegurarse de que tanto su dominio nuevo como el antiguo se agréguen a Google Search Console como dos propiedades diferentes. See Step 1 in the new Google Search Console guide for instructions.

Afterwards, you must select the number of prior areas as the property is activated in the Google Search Console control panel.

Select dominio antiguo Select the old domain

After that, click on the Configuration menu of the column izquierda y luego click on the herramienta ‘Cambio de dirección’.

Steering Cambio Address change

Ahora debe seleccionar su nuevo dominio en la sección Actualizar Google y luego hacer click en el botón ‘Validar y actualizar’.

Aggregate new direction a cambio de dirección Add new address to change of address

Eso es all, ahora Google validateará que su antiguo dominio esté redirecting al nuevo dominio y guardará sus cambios.

In the following, Google Search Console displays a step-by-step assistant to ask for direction changes.

Notific a sus usuarios sobre el nuevo number of dominios

So well the redirections 301 hacen su trabajo, siempre es bueno hacer un anuncio público sobre la migration.

Puede hacer esto simplye escribiendo una publication de blog en su nuevo sitio y compartiéndola en sus cuentas de redes sociales.

If you have an informative boletín por correo electrónico or subscribers of automatic notifications, you will also need to send them an anuncio.

Esto puede ser útil de muchas maneras.

In primer lugar, es most probable que sus usuarios recuerden el nuevo dominio una vez que lean sobre él.

In segundo lugar, puede pedirles a sus usuarios que le informen si ven algún error. Usted solo no puede probar su sitio en cada type diferente de navegador o entorno de sistema. Siempre es útil tener un par de ojos frescos mirándolo.

Hope that this tutorial lo haya ayudado a mover su site de WordPress a un nuevo name of dominio. Also can consult new guide sober how to obtain a dominio de correo electrónico gratuito, o ver nuestra selección experta de los best servicios telefónicos para empresas.

If you’re invited to this article, subscribe to a new YouTube channel for WordPress video tutorials. Also puede encontrarnos on Twitter and Facebook .

Shares 1.1k Share Tweet Share Facebook Messenger WhatsApp Email


Video WordPress move site to new domain

Related Posts

Free chat room code for my website

Contents1 How to set up a free chat room on the website.2 3 comentarios2.1 Trackbacks/Pingbacks2.2 Submit a Comment Cancel reply3 How to Create a Chat Room Website…

Background image full screen css

Contents1 Cómo – Full Page Image1.1 Example1.2 Example2 CSS background image tamaño tutorial: how to codify a complete page background image3 Perfect Full Page Background Image3.1 Méthode CSS géniale,…

WordPress leverage browser caching

Contents1 Aproveche el almacenamiento in hidden del navegador1.1 Will it works for my website?1.2 Where are plugin options1.3 Some JavaScript files still display under Leverage Browser Caching1.4…

WordPress post to facebook page

Contents1 How to Automatically Post to Facebook from WordPress1.1 Download Now: How to Launch a WordPress Website [Free Guide + Checklist]1.2 1. Create an IFTTT account.1.3 2….

Download images from wordpress media library

Contents1 How to export your WordPress media library1.1 Download maintenant : How to launch a WordPress website [Free Guide + Checklist]1.2 How to export your WordPress media…

WordPress single post template

Contents1 How to Create Custom Unique Post Templates in WordPress2 Post Template Files2.1 author.php2.2 Fecha.php3 Handbook navigation4 How to Create Custom Single Post Templates in WordPress5 Video…