Moving wordpress site to new domain

New Page

How to easily move WordPress to a new domain (without losing SEO)

Last Updated On Sep 27, 2021 By Editorial Team | Reader Disclosure Disclosure : Our content is endorsed by the reader. This means that if you click on some of our links, we may earn a commission. See how WPBeginner is funded, why it’s important, and how you can support us.

Share 1.1k Tweet Fee Fee Facebook Messenger WhatsApp Email

Do you want to move your WordPress site to a new domain? Changing the domain name of your website can significantly affect your SEO ranking, so it is a process that should be done with great care.

While you can still avoid temporary SEO fluctuations by migrating your website to a new domain, you can definitely minimize the impact and quickly get your search traffic and rankings back.

In this guide, we will show you the right way to move WordPress to a new domain without losing SEO.

Migrate a WordPress Website to a New Domain Name Without Losing SEO Migrate a WordPress site to a new domain name without losing SEO

Here’s the 5-step process we’ll cover to help you migrate your WordPress site to a nouveau domain name:

  1. Create a duplicator package of your WordPress site
  2. Create a database for your new domain name
  3. Unzip WordPress into the new domain
  4. Set up permanent 301 redirects
  5. Notify Google on cambio

Video tutorial

Subscribe to WPBeginner

If you prefer written instructions, read on.

What you need to know before changing domains

Before you begin, there are a few things you need to know.

The process of transferring to a new domain will temporarily affect your search engine ranking as Google and other search engines will need to adapt to the changes.

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

However, you can significantly reduce the impact of SEO by following this guide. We’ll show you the right way to move your WordPress site to a new domain name, set up proper 301 redirects, and notify search engines.

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

Finally, if your old website is on, you should follow the instructions in our guide on how to switch from to instead.

Pre-steps: what you need to get started

In this guide, we assume that you have set up your WordPress website on and are trying to migrate it to

Nous supposons également que vous avez déjà un compte d’hébergement WordPress et que vous connaissez votre panneau de contrôle d’hébergement Web.

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.

Create a new Duplicator package Create a new Duplicator package

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.

Build the package Build the package

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.

Download the Duplicator Package Download the Duplicator Package

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.

Creation of a new database Creation of a new database

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.

Adding a new MySQL database user Adding a new MySQL database user

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.

Add a user to the database Add a user to the database

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).

Upload Duplicator files to a new domain name Upload Duplicator files to a new domain name

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

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

Don’t forget to replace 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.

Connect your new database Connect your new database

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.

Update site URLs Update site URLs

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.

End of migration from WordPress to a new domain name End of migration from WordPress to a new domain name

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.

Activar redirects Enable redirects

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.

Full site redirection Full site redirection

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:




#Options +FollowSymLinks

RewriteEngine on

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

Note: Replace 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 agreguen a Google Search Console como dos propiedades diferentes. Consulte el paso 1 en nuestra guía de Google Search Console para obtener instrucciones.

A continuación, debe seleccionar el nombre de dominio anterior como la propiedad activa en el panel de control de su cuenta de Google Search Console.

Select old domain Select the old domain

Después de eso, haga clic en el menú Configuración de la columna izquierda y luego haga clic en la herramienta ‘Cambio de dirección’.

change of direction Address change

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

Add new address to address change Add new address to change of address

Eso es todo, ahora Google validará que su antiguo dominio esté redirigiendo al nuevo dominio y guardará sus cambios.

En la siguiente pantalla, Google Search Console le mostrará un asistente paso a paso para enviar su solicitud de cambio de dirección.

Notifique a sus usuarios sobre el nuevo nombre de dominio

Si bien las redirecciones 301 hacen su trabajo, siempre es bueno hacer un anuncio público sobre la migración.

Puede hacer esto simplemente escribiendo una publicación de blog en su nuevo sitio y compartiéndola en sus cuentas de redes sociales.

Si tiene un boletín informativo por correo electrónico o suscriptores de notificaciones automáticas , también debe enviarles un anuncio.

Esto puede ser útil de muchas maneras.

En primer lugar, es más probable que sus usuarios recuerden el nuevo dominio una vez que lean sobre él.

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

Esperamos que este tutorial lo haya ayudado a mover su sitio de WordPress a un nuevo nombre de dominio. También puede consultar nuestra guía sobre cómo obtener un dominio de correo electrónico gratuito , o ver nuestra selección experta de los mejores servicios telefónicos para empresas .

Si te gustó este artículo, suscríbete a nuestro canal de YouTube para videos tutoriales de WordPress. También puede encontrarnos en Twitter y Facebook .

Shares 1.1k Share Tweet Share Facebook Messenger WhatsApp Email

Mueva su sitio de WordPress a otro dominio

Dans ce guide, nous montrons comment déplacer manuellement un site WordPress existant vers un autre nom de domaine.

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 difficult? So why not use our 1-click migration tool? It is included in all of our WordPress hosting packages. Étape 1 – Vérifiez que votre site actuel fonctionne

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


Step 2 – Download the files of your website

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

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

Check out one of our guides if you would like some help with this:

  • Backup your web space with File Manager
  • Backup your web space via FTP

Step 3 – Export your database

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

If you need some help, check out our guide on how to backup your database.

Step 4 – Upload files to your new domain

Log in via FTP and upload your backup to the web space of your new domain. If you made your backup with File Manager, don’t forget to unzip it before uploading.


Step 5 – Import your database

Import the backup of your database to phpMyAdmin. Check out our guide on how to import a database, if you would like some help.

Step 6 – Go to wp_options

Once your database has been imported, locate the table called wp_options in the menu to the left.


Step 7 – Update siteurl and home

Next, you need to change the location of your site in the database.

  1. In wp_options, locate siteurl and home. Usually, these records are at the top of the table on line 1 and 2.
  2. For siteurl, click the field under option_value and replace the old domain with your new domain name.
  3. Press enter to save.
  4. Do the same for home.


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.


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.


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.


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. Login to your WordPress dashboard.
  2. Click Plugins and then Add New .
  3. Search for Better Search Replace and install the plugin with that name.
  4. Click Activate to make the plugin active.
  5. Click Tools and Better Search Replace .
  6. Find the old domain name and replace it with the new domain name.
  7. Select the tables in which you want to search. Your posts are in the wp_posts table, but it’s generally safe to select all tables.
  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.


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.


Related Articles:

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

Google Google translator

Google Google Translate

Video Moving wordpress 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…