Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
Coppa WPB
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Come spostare facilmente WordPress su un nuovo dominio (senza perdere la SEO)

Lo spostamento del sito WordPress su un nuovo dominio è un passo importante che necessita di un’attenta pianificazione. Modificare il nome del dominio può influire sulle classifiche SEO, quindi è essenziale gestire il processo con cura.

Abbiamo affrontato con successo il processo di modifica del dominio numerose volte, quindi conosciamo in prima persona le potenziali insidie e sappiamo come evitarle.

Sebbene le fluttuazioni temporanee della SEO siano inevitabili durante una migrazione di dominio, è possibile ridurne l’impatto. Con il giusto approccio, sarete in grado di recuperare rapidamente il vostro traffico di ricerca e le vostre classifiche.

In questa guida vi illustreremo il modo corretto per spostare WordPress su un nuovo dominio senza perdere la SEO.

Migrating a WordPress website to a new domain name without loosing SEO

La migrazione del vostro sito WordPress a un nuovo nome di dominio può essere spaventosa, ma non deve esserlo per forza. Siamo qui per accompagnarvi in ogni fase del processo.

Potete fare clic su uno qualsiasi dei link sottostanti per passare a una fase specifica della migrazione del vostro sito WordPress a un nuovo nome di dominio:

Video tutorial

Subscribe to WPBeginner

Se preferite le istruzioni scritte, continuate a leggere.

Cosa sapere prima di cambiare dominio

Prima di iniziare, ci sono alcune cose da sapere.

Il processo di trasferimento a un nuovo dominio influenzerà temporaneamente il posizionamento sui motori di ricerca, poiché Google e gli altri motori di ricerca dovranno adattarsi alle modifiche.

Ciò influirà temporaneamente anche sul vostro traffico di ricerca. NON SI TRADUCE: si tratta di una situazione normale, che capita a tutti i siti web che passano a un nuovo dominio.

Tuttavia, potete ridurre drasticamente l’impatto SEO seguendo questa guida. Vi mostreremo il modo giusto per spostare il vostro sito WordPress su un nuovo nome di dominio, impostare i reindirizzamenti 301 corretti e informare i motori di ricerca.

Si noti che questa guida non serve a spostare un sito WordPress su un nuovo host. Si tratta solo di cambiare un nome di dominio. Anche se il processo è simile, ci sono alcuni passaggi in più. Questi passaggi extra vi aiuteranno a proteggere le vostre classifiche SEO e il vostro traffico.

Infine, se il vostro vecchio sito è su WordPress.com, dovete seguire le istruzioni della nostra guida su come passare da WordPress.com a WordPress.org.

Passi preliminari: Cosa serve per iniziare

In questa guida si presuppone che il sito web WordPress sia impostato su oldsite.com e che si stia cercando di migrarlo su newsite.com.

Si presume inoltre che abbiate già un account di hosting WordPress e che abbiate familiarità con il pannello di controllo del vostro web hosting.

Dovrete anche sapere come utilizzare un client FTP come FileZilla o come modificare i file utilizzando l’applicazione File Manager disponibile nella dashboard del vostro account di hosting.

Nel caso in cui non abbiate un provider di web hosting o stiate cercando di passare a uno nuovo, vi consigliamo di utilizzare Bluehost (ottimo per i piccoli siti e con un dominio gratuito) e SiteGround o WP Engine (ottimi per i siti più grandi o i negozi online).

Una volta che questi elementi sono a posto, siete pronti per iniziare il processo!

Passo 1: Creare un pacchetto duplicatore del vostro sito WordPress

La prima cosa da fare è creare un backup completo del vostro sito WordPress.

Utilizzerete quindi questo backup per creare un duplicato del vostro sito web, in modo da poter impostare correttamente i reindirizzamenti dal vecchio dominio a quello nuovo.

Sebbene esistano molti plugin per il backup di WordPress, in questo tutorial utilizzeremo Duplicator.

Duplicator è il miglior plugin per il backup e la migrazione di WordPress. Lo abbiamo utilizzato per migrare innumerevoli siti web per le nostre aziende e per i nostri clienti. Abbiamo constatato che funziona in modo affidabile, anche per siti web molto grandi.

Nota: è disponibile anche una versione gratuita di Duplicator, che può essere utilizzata per questa migrazione. Tuttavia, si consiglia di passare a un piano a pagamento per sbloccare altre caratteristiche come i backup automatici nel cloud, il ripristino del sito web in un clic, migrazioni più semplici e altro ancora.

Iniziamo installando e attivando il plugin Duplicator sul vecchio nome di dominio. Per maggiori dettagli, consultate la nostra guida passo-passo su come installare un plugin di WordPress.

Una volta attivato, il plugin aggiungerà una voce di menu Duplicator nell’amministrazione di WordPress. È necessario andare alla pagina Duplicator ” Backups e poi fare clic sul pulsante ‘Create New’ per creare un nuovo backup o una copia del vostro sito WordPress.

Create new backup in Duplicator

Duplicator inizializzerà ora la procedura guidata posteriore e assegnerà automaticamente un nome a questo pacchetto.

Fare clic sul pulsante “Avanti” per continuare.

Name backup package

Duplicator eseguirà ora alcuni test per verificare se tutto è in ordine. Se il plugin trova un problema, verrà visualizzato un avviso con le istruzioni.

Se tutti gli elementi sono contrassegnati da “Buono”, fare clic sul pulsante “Costruisci”.

Build package

Il plugin inizierà a creare un pacchetto Duplicator dei file del sito web. A seconda delle dimensioni del sito, questo processo potrebbe richiedere alcuni minuti.

Una volta terminato, verrà visualizzata l’opzione “Download”. Facendo clic su di essa, si potrà scegliere di scaricare entrambi i file o di scaricare il programma di installazione e l’archivio (zip) separatamente.

Scegliere “Scarica entrambi i file” per scaricarli sul computer.

Download both backup files

Il file di archivio è una copia completa dei file di WordPress. Include i temi di WordPress, le impostazioni dei permalink, i plugin, i caricamenti e qualsiasi altro file creato dai plugin di WordPress.

Lo script di installazione è un file PHP che automatizza ed esegue la migrazione di WordPress scompattando il file di archivio.

Fase 2: Creare un database per il nuovo nome di dominio

Prima di spostare il vostro sito WordPress sul nuovo dominio, avrete bisogno di un nuovo database SQL per disimballare WordPress sul nuovo nome di dominio.

Se avete già creato un database, potete saltare questo passaggio.

Per creare un database, è necessario visitare la dashboard del cPanel del proprio account di hosting, scorrere verso il basso fino alla sezione “Database” e quindi fare clic sull’icona“Database MySQL“.

Vi mostreremo come individuarlo su Bluehost, ma le istruzioni di base sono le stesse e dovrebbero valere per tutti i provider di hosting.

Accedere al cruscotto del proprio account Bluehost e fare clic sul pulsante “Impostazioni” sotto il proprio sito web.

Bluehost site settings

Nelle impostazioni del sito, è necessario passare alla scheda “Avanzate”.

Scorrete un po’ in basso fino alla sezione cPanel e fate clic su “Gestione”.

Bluehost cPanel

Si aprirà il cruscotto di cPanel.

Scorrete la sezione Database e fate clic sull’opzione “Database MySQL”.

Bluehost cPanel MySQL Databases

Nota: il pannello di controllo del vostro hosting potrebbe avere un aspetto leggermente diverso da quello delle schermate. Tuttavia, dovreste essere in grado di trovare una sezione Database con un’opzione per creare un nuovo database.

È sufficiente indicare un nome per il database e fare clic sul pulsante “Crea database”.

Bluehost cPanel create MySQL database

cPanel creerà un nuovo database per voi. Dopodiché, è necessario scorrere verso il basso fino alla sezione Utenti MySQL.

Quindi, fornire un nome utente e una password per il nuovo utente e fare clic sul pulsante “Crea utente”. Assicuratevi di annotare il nome utente e la password in un luogo sicuro.

Bluehost cPanel add MySQL database username and password

Il nuovo utente appena creato non ha ancora il permesso di lavorare sul database. Modifichiamo la situazione.

Scorrere fino alla sezione “Aggiungi utente al database”. Per prima cosa, selezionare l’utente del database creato dal menu a discesa accanto al campo “Utente”. Quindi selezionare il nuovo database appena creato e fare clic sul pulsante “Aggiungi”.

Bluehost cPanel Add user to database

Successivamente, vi verrà chiesto di scegliere i privilegi per l’utente.

Selezionare “Tutti i privilegi” e fare clic sul pulsante “Apporta modifiche” per continuare.

Bluehost cPanel MySQL database user privileges

Il database è ora pronto e può essere utilizzato per spostare WordPress sul nuovo nome di dominio.

Assicuratevi di annotare il nome del database, il nome utente e la password. Queste informazioni vi serviranno nella fase successiva.

Fase 3: Disimballare WordPress sul nuovo nome di dominio

Ora è necessario caricare i file di Duplicator scaricati in precedenza sul nuovo nome di dominio.

Il pacchetto Duplicator include anche l’installazione di WordPress. Ciò significa che non è necessario installare WordPress sul nuovo dominio.

Per prima cosa, collegatevi al vostro nome di dominio utilizzando un client FTP. Una volta collegati, assicuratevi che la directory principale del vostro sito web sia completamente vuota.

Dopodiché, è possibile caricare i file dell’archivio e del programma di installazione nella directory principale. Questa è solitamente chiamata public_html.

Upload Duplicator files to new domain name

Una volta che entrambi i file hanno terminato il caricamento, siete pronti a scompattare WordPress.

Aprite una nuova scheda del browser e visitate il seguente URL:

http://example.com/installer.php

Non dimenticate di sostituire example.com con il nuovo nome di dominio. In questo modo si avvierà la migrazione guidata di Duplicator.

Duplicator installer wizard

Il programma di installazione cercherà il file di archivio e selezionerà automaticamente le opzioni sullo schermo.

Scorrete un po’ in basso per inserire le informazioni relative al database creato nel passaggio precedente.

Duplicator add database info

Di seguito, Duplicator mostrerà automaticamente l’URL del vecchio dominio e del nuovo dominio.

Se tutto sembra a posto, fare clic sul pulsante “Convalida” per continuare.

Duplicator validate details

Duplicator tenterà ora di connettersi al database utilizzando le informazioni fornite.

In caso di successo, verrà visualizzato un Passaggio di convalida. In caso contrario, verrà visualizzato un avviso con i dettagli su come risolvere il problema.

Duplicator validation passed

Fare clic sul pulsante “Avanti” per continuare.

Duplicator inizierà a importare il vostro sito web WordPress. Al termine, verrà visualizzato un messaggio di successo con un pulsante di accesso all’amministrazione.

Duplicator migration finished

Duplicator aggiornerà automaticamente gli URL al nuovo nome di dominio. Ora è possibile fare clic sul pulsante “Accesso amministratore” per completare le fasi successive.

Passo 4: Impostare reindirizzamenti 301 permanenti

Il passo successivo è quello di indirizzare gli utenti che arrivano sul vecchio nome di dominio verso il nuovo dominio. A tal fine, è necessario impostare i reindirizzamenti 301.

I reindirizzamenti 301 sono molto importanti per la SEO e l’esperienza utente. La loro aggiunta consente di reindirizzare automaticamente gli utenti e i motori di ricerca verso il nuovo nome di dominio.

In altre parole, ogni volta che qualcuno approda a un post o a una pagina del vostro vecchio dominio, verrà automaticamente reindirizzato allo stesso post o alla stessa pagina del vostro nuovo dominio, invece di visualizzare un errore 404.

Per mantenere i reindirizzamenti, è necessario mantenere attiva la vecchia installazione di WordPress, in modo che possa continuare a reindirizzare alla nuova appena creata.

Esistono due modi per impostare i reindirizzamenti. Il primo metodo è semplice e richiede solo pochi clic. Il secondo metodo richiede la modifica manuale dei file.

Metodo 1: Impostare i reindirizzamenti 301 con All in One SEO

Per questo metodo, avrete bisogno di All in One SEO (AIOSEO). È il miglior plugin SEO per WordPress sul mercato e vi permette di ottimizzare facilmente il vostro sito web WordPress per la SEO.

Innanzitutto, è necessario installare e attivare il plugin All in One SEO sul vecchio dominio. Per maggiori dettagli, consultate la nostra guida passo passo su come installare un plugin di WordPress.

Nota: per accedere all’addon per la gestione dei redirect è necessaria almeno la versione Pro del plugin. Potete anche impostare AIOSEO sul vostro nuovo sito WordPress per incrementare ulteriormente il posizionamento sui motori di ricerca e il traffico.

Dopo l’attivazione sul vecchio dominio, è necessario visitare la pagina All in One SEO ” Reindirizzamenti e fare clic sul pulsante “Attiva reindirizzamenti”.

Activate redirects

Successivamente, è necessario passare alla scheda “Reindirizzamento completo del sito” e attivare la levetta “Ricolloca sito”.

Dopodiché, è necessario inserire il nuovo nome di dominio accanto all’opzione “Trasferire su dominio”.

Full site redirect

Non dimenticate di fare clic sul pulsante “Salva modifiche” per memorizzare le impostazioni.

Metodo 2: Impostare manualmente i reindirizzamenti al nuovo dominio

Questo metodo richiede la modifica del file .htaccess di WordPress sul vecchio nome di dominio.

Per prima cosa, è necessario collegarsi al vecchio sito tramite FTP e modificare il file .htaccess.

Questo file si trova nella stessa cartella di wp-includes o wp-admin. Aprite il file .htaccess e incollate le seguenti righe di codice all’inizio:

#Options +FollowSymLinks
RewriteEngine on
Unchanged: RewriteRule ^(.*)$ http://www.newsite.com/$1 [R=301,L]

Assicuratevi di sostituire newsite.com con il vostro nuovo dominio nel codice sopra riportato.

Una volta applicate queste modifiche, visitate il vostro vecchio nome di dominio. Dovrebbe reindirizzarvi automaticamente al nuovo dominio.

Se non lo fa, significa che il reindirizzamento non è impostato correttamente e che il vostro server probabilmente non supporta le regole di reindirizzamento. È necessario contattare il team di assistenza della società di web hosting per attivare RewriteEngine.

Passo 5: notificare a Google il nuovo dominio

Ora che avete spostato WordPress su un nuovo nome di dominio e avete impostato i reindirizzamenti, è il momento di notificare a Google il vostro cambio di indirizzo. In questo modo Google troverà rapidamente il dominio del vostro nuovo sito web e inizierà a mostrarlo nei risultati di ricerca.

Innanzitutto, è necessario assicurarsi che il nuovo e il vecchio dominio siano aggiunti a Google Search Console come due proprietà diverse. Per le istruzioni, consultare la fase 1 della nostra guida a Google Search Console.

Successivamente, è necessario selezionare il vecchio nome di dominio come proprietà attiva nella dashboard dell’account di Google Search Console.

Select old domain

Successivamente, fare clic sul menu Impostazioni dalla colonna di sinistra.

A questo punto è possibile fare clic sullo strumento “Cambiamento di indirizzo”.

Change of Address

A questo punto, è necessario selezionare il nuovo dominio dalla sezione Aggiorna Google.

Quindi, si deve fare clic sul pulsante “Convalida e aggiorna”.

Add new address to change of address

Questo è tutto. Google convaliderà ora che il vecchio dominio sta reindirizzando al nuovo dominio e salverà le modifiche.

Nella schermata successiva, Google Search Console vi mostrerà una procedura guidata passo dopo passo per inviare la richiesta di cambio di indirizzo.

Notificare agli utenti il nuovo nome di dominio

Mentre i reindirizzamenti 301 fanno il loro lavoro, è sempre bene fare un annuncio pubblico della migrazione.

Per farlo, è sufficiente scrivere un post sul nuovo sito e condividerlo sui propri account di social media.

Se avete una newsletter via e-mail o abbonati alle notifiche push, dovreste inviare un annuncio anche a loro.

Questo può essere utile in molti modi.

In primo luogo, è più probabile che i vostri utenti si ricordino del nuovo dominio una volta che lo hanno letto.

In secondo luogo, potete chiedere ai vostri utenti di farvi sapere se notano qualche bug. Da soli non potete testare il vostro sito in ogni tipo di browser o ambiente di sistema, quindi è sempre utile che un paio di occhi nuovi lo guardino.

Risorse bonus

Gli articoli e le esercitazioni che seguono vi aiuteranno a monitorare e a recuperare le vostre posizioni SEO dopo la migrazione a un nuovo dominio:

Speriamo che questo tutorial vi abbia aiutato a spostare il vostro sito WordPress su un nuovo dominio. Potreste anche consultare la nostra guida su come ottenere un dominio email gratuito o seguire i passaggi della nostra guida completa sulla SEO di WordPress.

Se questo articolo vi è piaciuto, iscrivetevi al nostro canale YouTube per le esercitazioni video su WordPress. Potete trovarci anche su Twitter e Facebook.

Divulgazione: I nostri contenuti sono sostenuti dai lettori. Ciò significa che se cliccate su alcuni dei nostri link, potremmo guadagnare una commissione. Vedi come WPBeginner è finanziato , perché è importante e come puoi sostenerci. Ecco il nostro processo editoriale .

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.

Il kit di strumenti WordPress definitivo

Ottenete l'accesso gratuito al nostro kit di strumenti - una raccolta di prodotti e risorse relative a WordPress che ogni professionista dovrebbe avere!

Reader Interactions

508 commentiLascia una risposta

  1. Syed Balkhi

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

    This absolutely worked for me :)

  3. Eben

    Hi, One simple question,

    Domain1.com (expired but files are there in CPanel of X Hosting)
    Domain2.com (new domain added to X Hosting and nameservers updated to point to hosting server)

    I simply want my Domain2.com to point to files or folder of Domain1.com in my hosting account

    pls tell how to do this..this is not answered clearly anywhere

    • WPBeginner Support

      Hi Eben,

      In your domain settings there is an option to select the root folder or home directory for that domain. You can use that option and point it to the directory that has your older domain’s files.

      Admin

  4. Rafi

    Hi there,
    My website domain name has expired but I have a full backup of it using backup to dropbox. Now can I migrate the previous site to a new domain? If possible then what are the process?
    Thanks In Advance
    Rafi

    • WPBeginner Support

      Hi Rafi,

      Yes you can migrate it to a new domain name. The process actually depends on the backup you have. If you have complete WordPress backup then you can just upload it to your new domain name and then update URLs.

      Admin

  5. sarah

    I enjoyed the article! I just wondered, what do i do if my new site is still being hosted with wordpress? there is no URL change either.
    I don’t think i’ll need to do any 301 redirects is that right?

    However, I am lost as to the steps i should take to move the traffic from A to B, does this depend on the DNS change? Would appreciate any advice!

  6. Logan Miller

    This is SUCH a helpful article.
    I’m currently stuck at the “sitename.com/installer.php” step. When I put this in the browser (but with my actual domain) I get a 404 error.
    The installer.php file is uploaded to my directory, so in theory it should work?

    I’ve double checked all the previous steps, and it seems to all be good, so I’m stuck.

    My first thought is that perhaps the dns nameservers haven’t fully propagated yet, and I’m being impatient.

    Anyone have an idea?

  7. Chris

    Hey guys great article. I actually merged 2 existing sites together and moved all the content from my subdomain site onto my main domain site.

    All data has been transferred across and I have setup the redirect using htaccess file. All the links appear to be redirecting correctly =)

    my question is, what should I do with the OLD wordpress install (files, database etc) located on the subdomain?

  8. Julie

    Great article! My question is similar but my client already has a new site hosted with blue host. Her old site is a wordpress.com site. She doesn’t need any of the content as she has completely finished the new site. My question is about the redirects from the old site. People still visit there and she’s got good rankings. What’s the best way to redirect the pages (urls) from her old wordpress.com site to her new self hosted site? No content or anything. Just the redirects.
    Thanks for all your help! You guys are the best!!

    • WPBeginner Support

      Hi Julie,

      The best way to redirect is by purchasing the Site Redirect addon from WordPress.com

      Admin

  9. Shadhirsha

    Hi,
    I have a website with subdomain and I didn’t publish my main domain. when I trying to apply for adsense. it shows that you can’t register with subdomain.
    So I am trying to move my subdomain to main domain. But I have problems

    These are the problems below:
    1. I have register google analytics, google optimize, tag manager and webmasters and etc(SEOs) with subdomain
    2.Traffics and trackings

    So, Please help me to move my website safely

    • WPBeginner Support

      Hi Shadhrisha,

      Please see our article on moving WordPress from subdomain to root domain.

      You will need to create a new Google Analytics, Optimize, and Tag manager profile for the root domain as it is a different domain altogether. Same goes for webmaster tools, however you can inform Google by change of address in the webmaster tools settings for your old subdomain.

      Admin

  10. Brian

    I had an idea for a website and instead of registering for a domain i just made a subdomain from one of my other sites. The idea has developed into something more now. I want to register a domain name and move everything to it and delete the subdomain. I don’t have that much content, I haven’t started it up yet. I could just delete the subdomain and populate the new domain manually. But I do have the subdomain in google analytics and search console. Would it hurt my new site if I did just delete the subdomain, register a new domain and start from there.

    • WPBeginner Support

      Hi Brian,

      If the site was not indexed by search engines or had no significant content, then it is safe to delete it.

      Admin

  11. Mike Poepping

    This article makes sense for how to move an entire domain to a new address, but what would change in this process if I only wanted to move some content from one site to another?

    I’m working with a client who has a new site being developed (for a large national audience), so that their current site can focus on driving local leads only.

    I want to know how to get their highest performing blogs on to the new national site without losing the excellent keyword rankings we’ve achieved over the past couple of years on their current site (which is the site moving to the extremely local focus).

    Any tips and/or guidance would be greatly appreciated, thanks in advance!

  12. Sam

    unfortunately, I deleted all the old domain files including the .htacess file from the server without redirecting.Now I got my new domain and I don’t have my old domain files. could you please tell how can I redirect the users from old to the new domain in this situation? Else my domain will be penalized by Google which looks like duplication as I didn’t redirect.

    • WPBeginner Support

      Hi Sam,

      Assuming that you still have the old domain name registered, deleting the file only makes your website unavailable on your old domain. You can simply create a new .htaccess file in the old domain folder to set up redirects.

      Admin

  13. Murali N

    Hi, my current WordPress is in root folder; now I want to create WordPress Network / Multisite with sub-folders.
    Can I move my current example.com to example.com/subfolder-1 following the above? OR, is there a simple way to do this?

  14. Alex

    Hi

    I want move a website to another domain however the structure is very different. The old website was created several years and hasn’t even submitted to google webmaster or console as it is now. What would be the best way to go around it.

  15. Joe G

    There are about a million unanswered questions that all ask the same thing:

    How long do you leave the old site up for?

    If you delete the old site files (to save backup space) will leave the edited .htaccess file in the old directory, will it continue to forward to the new site?

    Thanks.

    • WPBeginner Support

      Hi Joe,

      You should keep your old domain for at least 6 months. You can delete any old files via FTP without deleting .htaccess file.

      Admin

  16. Abhay

    Hi,

    Thanks a lot for your post!

    I am using a domain abcd.com for my Wordpress based website hosted on Bluehost and want to shift to wxyz.com. I have purchased this new domain.

    Now your article says “Next, you need to open your FTP program and connect to your new site. Make sure that the root directory, or the directory where you want to copy your website is completely empty. Upload the installer.php file and your package zip file to the new site.”

    What do you mean by “connect to new site”? As far as I read from your website, and FTP client is used to access files on your ‘hosting’ and not ‘domain’. How do I access the root directory of my new domain? I just have the domain name with me.

    I am not a pro with the website stuff so I contacted my domain provider, they said you can simply change the A name record and nameservers.

    I am stuck, please help me.

    • WPBeginner Support

      Hi Abhay,

      Domain names are addresses that point to files hosted on your hosting account. Please see our guide on the difference between domain names and web hosting to learn more.

      If your new domain is also hosted on Bluehost, then you can go to your domains settings and find out your root folder. It could be any folder inside your website’s root directory. Usually it is named after your domain name.

      Admin

      • Abhay

        Hi,

        I am using the following service providers:

        Hosting: Bluehost
        Old Domain: Hostgator
        New Domain: Godaddy

        Now how to I access the root folder of my new domain?

        • WPBeginner Support

          Hi Abhay,

          First you will need to point your GoDaddy domain to Bluehost servers by changing its DNS settings. Next you will need to add your domain name to your Bluehost hosting account. Go to your hosting cPanel dashboard and click on Add Domains.

  17. Rob

    Hi!! Thanks for this!!

    I have a question though: Do I need to keep my old domain like forever? Until when should I wait to finally delete my old domain?

    • WPBeginner Support

      Hi Rob,

      We recommend keeping the old domain for at least 6 months. After that you can let it expire.

      Admin

  18. Krunal

    Hi, I am trying to shift a blog between two domain hosted on the same server and with the same MySQL server versions. However while installing database i am getting a connection error and and reason mention in the message was the MySQL Version issue. Below is the exact message i am getting:

    NOTICE: The current version detected was released prior to MySQL 5.5.3 which had a release date of April 8th 2010. WordPress 4.2 included support for utf8mb4 which is only supported in MySQL server 5.5.3+. It is highly recommended to upgrade your version of MySQL server on this server to be more compatible with recent releases of WordPress and avoid issues with install errors.

    Any help in this regards is really appreciated.

    Thanks

  19. Joe G

    Everything worked perfectly with the move but what now?

    How long do you need to keep the old installation and will the redirect still work with just the edited .htaccess in the directory?

  20. Andreas Schueler

    Very helpful post, thank you. With your help, moving to the new domain was a breeze.

  21. Smith Andrews

    Firstly, thank for your great work….i want to migrate my site to a new domain in the same server…the old domain is in the public directory so will the new site be a subdomain or what im confused??

    • WPBeginner Support

      Hi Smith,

      You can point your domain name to any folder inside public_html. For example, you can create a new folder under public_html and name it after your new-domain.

      Admin

  22. Adesanmi Franklyn

    Hi,
    Thanks for this awesome content. Please I want to know how long it will take Google to rank the new site as the old site. And also, would all the link juice of the old site be passed to the new site?
    Because the moment I changed the URL following this all traffic and post ranks drop. Now I’m wondering if it will take position again on search.

    • WPBeginner Support

      Hi Adesanmi,

      Please see the step 4. It allows you to tell Google that your website address has changed. The search rankings will start reappearing in sometime. Meanwhile, your 301 redirects will keep sending users to your new website.

      Admin

  23. Tanya

    Thanks for this detailed post. I’m wondering why I need to duplicate the wordpress site. Why can’t I just change the domain for the current site without duplicating it? If I create a duplicate wordpress installation, it will exist in a subfolder, which is not ideal, especially for the link structure. Thanks in advance.

    • WPBeginner Support

      Hi Tanya,

      This method makes sure that your website is available on both locations during the transfer and before setting up permanent redirects.

      Admin

      • Tanya

        Thanks for your reply. I have another question. If I use the Duplicator plugin, do I have to first create a database for the new site before I run the duplicator installer? Do you have instructions for doing this? The instructions above indicate that the installer should be put into a folder that is completely empty. That implies that I cannot first use the Wordpress installer that comes with BlueHost to install Wordpress (and I assume also creates the associated database). Thanks for your help.

        • WPBeginner Support

          Hi Tanya,

          Yes, you will need to create the database. We will soon update the article with more detailed instructions. Meanwhile, you can create a new database by visiting your hosting account’s Cpanel dashboard. Look for the databases section and click on MySQL Databases. You will first need to create a new database, after that you will need to create a new database user. Finally, you will need to add your new database user to your database.

  24. Micheal James

    how to do 302 redirect?

  25. Mikeal

    i have redirected my website but still i am having issues

  26. Castro

    Hey Wpbeginner, thanks for the article. How can i move my free domain under wordpress to a paid hosting and new domain name. Ive search everywhere but no clue. Thanks

  27. Kerry

    Hi Wp-Support,

    Thanks for such a great article. Though it’s was written months ago, it’s an evergreen article.

    However, my question is: I recently registered a new domain, in fact it is my first WordPress website. But it has not yet been indexed. Does the process you outlined here applies to my new site as well?

  28. Vince Hordemann

    Great article. I followed it step by step and it appears that my old site is now redirecting and that my Google Analytics and Webmaster Tools are all working too. Thanks!

  29. Georgia

    Hi!
    First of all I would like to congratulate you on your great, helpful and comprehensive posts. The steps seem really simple to follow.
    I want to ask something that is not yet covered, neither in the text, nor in your replies. Lets say that my current site is https://www.example.net (it already has a SSL certificate) and I want to redirect all pages to https://www.example.com ( https as well), without changing host provider.
    Which code should I use in .htaccess file? Should I do anything else?
    Thank you in advance!

  30. Manpreet Singh Rehsi

    Hi,
    What should we do with old domian name.

    For how much time one should keep old data as it is on the old domain.

  31. Jennifer

    Hi, I just purchased a new domain name and want to change the old domain to the new one. My worry now is, my current hosting does not have SSL cert and I am using the Cloudflare Flexible SSL. Do I need to put in redirect both http and https (even though I don’t have the cert in my hosting)?

    How about Cloudflare? Do I use the same account, edit it with new domain name or register a new account?

    Many thanks in advance.

  32. Brit

    Thanks for this. Does this only work for wordpress.org? I have wp.com and can’t seem to find the htaccess link and it looks like the only way to change my site name with the new domain is to pay to map it. Is this normal?

  33. kuber

    Hi,

    There is a question about my sitemap

    After submitting the new website’s sitemap to Search Console, the old website sitemap should be removed

  34. Rui

    Hi, thanks for your nice tutorial! Can you please clarify the best way to execute Step 4, when you have to migrate your site every 2 months or so due to having it blocked by the local authorities? Cheers

  35. Elise

    These directions helped me a lot! Thanks!

  36. Mick Lite

    If I change the domain, does all the stats in the blog stay like views and such?

  37. Russell Alexander

    My band has a sign up page (.net) and a website (.com). The .net is a redirect to a directory on the .com site, it’s not its own real domain. The .com is also a add-on domain of my main domain, so it’s like this:
    Main domain – add-on .com (as a folder of the main) – .net (a folder in the .com)

    I set up a WP site on my main domain. It put it in the root, even before the .www folder that has the main, the add-on, etc. But it has a specific path, so (finally) the question:

    Can I just change the redirect of the .net to the new WP install I’ve done? Sorry if this sounds like a Gordian knot, but that’s the best way I can explain it. I haven’t used WP much before, and I wanted to make sure it wouldn’t freak out being the subject of a redirect. As in, the plug-ins, Paypal, etc.. The redirect would really only affect the main landing page, where people sign up for the mailing list.

    Thanks for your help.

  38. Camila

    This article helps a lot thank you. I just have one question. I have my primary domain and the new domain and both point to the same root. When you type either domains they will go to the same homepage but of course all posts and pages are under the primary domain.

    This being said I’m not switching locations or anything. I mean the root file will remain the same I only need to switch is the domain name {with home and posts redirects of course}. So, do I need to do the whole duplicator step thing???

    This process is really scary for me!
    Any help will be appreciated.

    Kind regards
    Cami

  39. Chris ohrn

    For step 3 and step 4:

    if the site uses the same url, that should not be needed or?
    as well we got a 301 on our topp domain but don’t know how to remove it..
    The 301 is not there on the www. but without the www. it is there!

    A bit bizare and mindboggler..

    Thanks for thoughts:)

    • Swati Ohri

      Hi Team,

      I just moved from my old domain to a new one. I have a basic account on Bluehost hence the customer support team says I can’t add it as an addon domain to create 301 redirects. My old domain was 6 months old, now I have to again start from the very first step. Can you help me how I can fix this?

  40. Kristine

    Where I can find full service for domain migration?

    I need to migrating (rebranding) domain1.com to domain2.com with all of the contents and urls, also the subdomain. Looks like it’s a complicated job :(

    Thanks

  41. Hasi Aulia

    Hi there,

    I want to ask you, how about to redirect domain and change the paltform at the same times, I wanna move aaaa(dot)com (using blogspot custom domain) to bbbb(dot)com using wordpress self-host.
    What the best step to avoid losing my ranking at the search engine to do it?

    Thanks

  42. Logan Cale

    One question or factor typically not mentioned when you change a domain is how long does it take to get back your rank in Google, and the answer according to this article below is 2-6 months depending on what you do to improve it.

  43. Luiz Cent

    Thank you for publishing this article, I would not have remembered to notify Google of the change, I was simply going to resubmit the new site to index. Also have to make the change in GA!

    Much more work than anticipated but it’s done!

  44. Cliff

    First off, nice article very helpful.
    The question is how long do I need to leave the old site up? or can I delete the old site now that I have the new site up and running.
    Thanks in advance.

  45. hari kumar thapa

    I want to change my domain and move that WordPress to new hosting! will this have any effect only ranking? backlinks or like that?

    Any anyone suggests me any post how I can move my WordPress to Blogger completely?
    No just copy past I want to completely move into blogger.
    Is this possible?

  46. Pamela

    Is there a way to transfer Facebook comments from the old domain? I’m using facebook comments on my old website and would love to keep them on the new domain.

  47. Med

    Hi, I wan some help please

    My case is a little different

    I migrated content of my website example.com from blogger to Wordpress with dedicated server and I decided to leave the first active until I finish the development of the wordpress version that has a provisional domain ‘example. net’

    When I finished developing, I tried to permanently change the .NET domain name to .COM because I might lose all the search results from the search engines.

    How can I reach this goal and thank you

  48. Saimon Hossain

    Hello sir, i already change my site address in webmastertool, but now again i need to change the domain. so what should i do now?

  49. Emmanuel

    Good post, I am trying to move only partial content not the entire website. What is the best way to go about it and not lose SEO ranking?

  50. Emily Burnett

    Thanks so much for this post – very straightforward and helpful as I tackled something intimidating.

  51. Ryan

    Thank you!

    This content was exactly what I needed. Really really helpful.

    Much appreciated.

Lascia una risposta

Grazie per aver scelto di lasciare un commento. Tenga presente che tutti i commenti sono moderati in base alle nostre politica dei commenti e il suo indirizzo e-mail NON sarà pubblicato. Si prega di NON utilizzare parole chiave nel campo del nome. Avremo una conversazione personale e significativa.