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.

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 fare clic sul menu Duplicator e poi sul pulsante “Crea nuovo” per creare un nuovo pacchetto o copia del vostro sito WordPress.

Create a new Duplicator package

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

Fare clic sul pulsante “Avanti” per continuare.

Duplicator package name

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

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

Duplicator download both files

Scegliere “Entrambi i file” per scaricarli sul computer.

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. Saifullah Tamim

    Many Many thanks brother. This article is very helpful.

    • WPBeginner Support

      Glad our guide was helpful!

      Admin

  3. Sajid

    for how many days I need to keep the old site running. For 301 redirection

    • WPBeginner Support

      There is no universal answer for every site, it would depend on your site and audience but if you wanted to be safe a year is normally long enough for users who would revisit your site to see the change especially if they check your site for seasonal content.

      Admin

  4. James

    Hello, I hope you are doing good. How about migrating a subdomain to a completely new domain name ? For example, migrating “example.blog.com” to “example.com”.

    • WPBeginner Support

      You can still use this method for moving from a subdomain to a completely new domain :)

      Admin

  5. ronald

    we still are using our existing site for some things, but not for blogs. these were migrated. we set up 301 redirects and all working smoothly but curious… after migration, with 301 redirects all set up on old server, should we unpublish the posts on old server so they no longer are on old sitemap?

    • WPBeginner Support

      If you plan to continue to use your old site for other uses then it would normally be best to remove the content you’ve set up redirects for.

      Admin

  6. thierry

    Thanks a lot for this piece, following thes instructions was really clear and everything went smooth without any problems thanks thanks and thanks!

    • WPBeginner Support

      Glad our guide was helpful!

      Admin

  7. Mark

    Thank you. I tried so many other plugins and techniques – none worked very well.

    Although crazy complex for a simple thing this is a great technique. After nuking my earlier attempts this one fixed everything. Fonts, images, thumbnails, etc.
    Thank you.

    • WPBeginner Support

      Glad our guide could help simplify the process in a way that worked for you :)

      Admin

  8. Manas Patil

    Hello, this article was of great help. Thanks a ton!

    But I’d to ask – since I’ve one SSL certificate, I thought I’d move the SSL from my old site to my new site. If I do move it, should it cause any errors while I redirect from my old site to new site?

    Thanks in advance!
    Manas

    • WPBeginner Support

      You would want to check with your hosting provider as some have methods to help prevent any errors when changing domains on the same host if they only have one SSL certificate. In general, it should not cause any issues if set up properly.

      Admin

      • Manas Patil

        Thanks a ton! I managed to move my site completely. Towards the end of the Search Console part, is it necessary to submit the sitemap again – because I don’t see my previous sitemap submissions on my new domain property.

        • WPBeginner Support

          If you haven’t submitted a sitemap for the new domain you would want to do so to help Google crawl your URLs :)

  9. BIKRAMJIT KONWAR

    Hi, many thanks for the article. I have a confusion here, can I migrate my WordPress site to a new domain without migrating the existing theme as I want to change the theme?

  10. Amir

    Hello
    After migration to new domain, how should i send new post on my site ? Send a new post on old domain or new domain?

  11. Md Shuaib Raza

    Can i delete and cancle my old domain name by provoider after migration?

  12. Paco

    I’m moving to a new domain name, but I’m still going to use the old domain name for other purposes. I don’t want to redirect the entire oldsite to newsite. What’s the recommended way in this case? Thanks.

  13. Hassan

    It helped me a lot, my question is in ftp I will enter my new domain name and user name and password, then you said the installer file and archive file the installer file is it the wordpress zipp file or something else?

    • WPBeginner Support

      The installer file would be what you downloaded from the Duplicator plugin.

      Admin

  14. F NIc

    Hi, thank you for this detailed guide. I intend to switch domain from Bluehost to GoDaddy and I am wondering if my wordpress website will be affected in terms of how it will look after the switch.

    • WPBeginner Support

      Your hosting provider would not affect how your site looks, as long as there are no issues with the duplication process the site should look the same.

      Admin

  15. Sachin

    I have a question, I have single web hosting, so how can I move from the old domain to the new domain?

    • WPBeginner Support

      If you are staying on the same host, you would first want to check with your hosting provider as some have tools to help with changing your site’s domain.

      Admin

  16. Andy

    I’m having a little trouble with Step 5. Notifying Google About the Change.

    When I filed the change of address (the Search Console seems to have changed since you wrote this post, but I figured out the new procedure OK), the validation failed because Google couldn’t fetch the home page for my old site.

    • WPBeginner Support

      Thank you for letting us know, for this situation, you would want to point Google to your new site for it to test the redirects.

      Admin

  17. Sharon

    Thank you so much for this tutorial it was so easy for me to redirect my old domain

    • WPBeginner Support

      Glad our guide was helpful :)

      Admin

  18. amir

    can I delete the old host and domain after I did all the steps? or I should renew the host and domain after then

    Thanks

    • WPBeginner Support

      It is normally a good idea to redirect the old domain to the new one for some time but you can end the old hosting and still redirect the old domain if you wanted.

      Admin

  19. Dejan

    Hi Wpbeginner!

    Very good article as usual, i have a question just to double check, will all paths be changed? For example media links and so on? Thanks again

    • WPBeginner Support

      Using this method, your links to images and other media should be updated as well.

      Admin

  20. dariu

    Thanks for this. What is the difference for migrating to new host (and domain)? Is there any difference in steps and instructions?

    • WPBeginner Support

      You would use the same steps for a new host as well.

      Admin

  21. Penny

    I had to put in mine in the public_html folder to work. Very frustrating at first until I tried that!

  22. Jose

    Thanks for a great tutorial!

    I’ve ran into a quirk after following all the steps.

    My site redirects everything EXCEPT the content of the home page.

    I updated the name servers about two days ago.

    I did the redirection via .htaccess.

    I’m not sure where to look to troubleshoot the issue. Any direction is appreciated. Thanks again!

    • WPBeginner Support

      We would recommend checking for any caching plugins as well as reaching out to your hosting provider for the most common reasons for that issue and your hosting provider can normally take a look from their end as well.

      Admin

      • Jose

        Following up.

        I was/am using W3 Total Cache.

        Before I migrated, I forgot to disable caching. And that caused issues.

        After the migration, I had to manually remove W3 Total Cache in order to get the new site working again.

        There was a section of caching code left over in the new .htaccess file.

        All has been good since then!

        • WPBeginner Support

          Glad you were able to get the issue sorted :)

  23. Haitham

    Hi,

    Great tutorial. I have to ask about the SSL redirects since it may cause issues for domains that use cloudflare for instant.

    So while adding the code on the .htaccess file in the old website how do I add a newwebsite.com/1$ to that command ?

    • WPBeginner Support

      If you mean how to update your site to a new domain using a CDN like Cloudflare, we would recommend reaching out to the CDN you are using for their current methods for that kind of change.

      Admin

  24. Joe

    In the last step you mentioned “notify google about the change”.

    But what if don’t notify Google about the change, just move the website to new domain, and remove all the pages from old domain (as my website is new and doesn’t have any organic traffic)?

    Is it valid?

    • WPBeginner Support

      You can do that if you want but you would likely take a negative hit in your search engine rankings.

      Admin

  25. Jay Dee

    I have a question about subscribers the website who have created profiles. Would I have to do redirects for their individual profile pages ?

    • WPBeginner Support

      If you are using the same systems then you shouldn’t need an additional redirect unless the tool you are using says so.

      Admin

  26. Rajesh

    I have a question, I already set 301 redirection, and all the request to the old site is redirecting, now my question is, when I can delete old site and its content permanenty?

    • WPBeginner Support

      After you create your redirects you can remove the old content.

      Admin

  27. Morgan

    Hello, please I’m confused on this sentence “Once connected, make sure that the root directory of your website is completely empty.”

    How can make the root directory to be empty cause is showing some files and folders. Please I need an answer on how to do that. Thanks

    • WPBeginner Support

      You can either use FTP or some hosts have file managers you can use to delete the folders or you can reach out to your host for assistance

      Admin

  28. Braeden

    Thanks for this! How would you handle domain1 is moving to domain2, but, many of the URL slugs on domain1 are different on domain2. For example, domain1/this-is-a-post/ will be going to domain2/this-is-the-new-post/

    • WPBeginner Support

      It would depend on the specific changes but depending on how drastic the change you may need to manually set up the individual redirects.

      Admin

  29. Marco

    Thank you for this guide. It helped me.

    I tried the 301 redirect on htaccess. However it only redirects the homepage. Any chance for help? Thanks

    • WPBeginner Support

      You may want to try clearing your caching and checking with your hosting provider to ensure they don’t see any errors on their end.

      Admin

  30. Gosia

    This is great if moving a complete old site to a new domain. But what to do to when you are setting up a new site and want to move over only a few posts from the first site? I don’t want to lose organic traffic.

    • WPBeginner Support

      You can check under Tools>Export and select the specific posts you want to transfer to your site.

      Admin

  31. Alexandre

    Thanks a lot for this tuto.
    I don’t understand why we have to set up permanent 301 redirects if I keep the same domain name ?

    Thank for your answer,

    Alex

  32. Prasad Rane

    Hey thanks a lot for this step by step tutorial.I was able to move clients site in just 30 mins. He was surprised. Thanks a lot.

    • WPBeginner Support

      Glad our guide could help :)

      Admin

  33. Luiz Pedao

    Hello, got a bit of a problem here. I transferred my good php and zip files to the public directory, and yet when I browse to mydomain/installer.php it just doesn’t find the page. What could be the problem?

    Thanks in advance

    • WPBeginner Support

      You may want to reach out to your hosting provider to ensure the domain is set up to the correct location that you’re adding the files.

      Admin

  34. Razi

    Thanks, Buddy, After reading your article It’s just like the peace of cake

    • WPBeginner Support

      Glad our article could be helpful :)

      Admin

  35. hassan

    GOOD guide.
    but if I want to change my URLs in a new domain

    my post in the old domain is: oldedoman.com/best-products-2020/
    I want to change to newdomain.com/best-products/

    How to redirect all my posts
    Thanks

  36. Adrian Filip

    Brilliant tutorial. Thank you! Work like a charm!

    • WPBeginner Support

      Glad you found our guide helpful :)

      Admin

  37. Megan

    Does this process work with a bluehost basic account? I have purchased my new domain but can’t assign it as an Addon domain since I can only have 1 website. What is the best way to work with this?

    • WPBeginner Support

      If you’re unable to create an addon domain we would recommend reaching out to your host and some offer support or different ways to set it up.

      Admin

  38. Megan

    Does this method work if I am using the Bluehost Basic plan where I can only have one website? I can’t make my new domain an add on domain.

    • WPBeginner Support

      You can move from a host to BlueHost’s basic plan following this guide

      Admin

  39. Utsav

    Hi,
    I have questions that where to use 301 redirect, in new domain .htaccess or old domain .htaccess.
    In my case I have changed my website domain as well as web hosting. Then where to apply 301 redirect and how many time I should active my old domain and hosting active?

    • WPBeginner Support

      You would want to add 301 redirects to the old domain. It depends on your old site and personal preference for how long you should keep the old domain active but you shouldn’t need the old hosting.

      Admin

  40. Suchitha

    I earlier had my domain in a Wordpress site that I do not own. I developed my website there. Now, I have moved my domain to a new WordPress site that I own and also used the Export/Import option to transfer my content to the new site. However, I am having to re-design my website again. Does the procedure mentioned here ensure that my site is transferred intact?

    • WPBeginner Support

      The method in this guide should let you keep your theme and plugins how they are set up.

      Admin

  41. Adz

    Hi, thanks for sharing.

    Once I’ve successfully migrated my old website to the new domain, will the 301 redirect continue to redirect even after ive deleted my old website? The reason I’m asking is because I have several posts on facebook that point to my old site.

    • WPBeginner Support

      As long as the redirect remains in your htaccess file it will continue to redirect to your site.

      Admin

  42. Ejimurphy

    After moving the the old site to new site, do I still need to purchase new SSL certificate or the SSL certificate for old site will work for the new site

    Thanks!

    • WPBeginner Support

      Most hosts should offer Let’s Encrypt as a free option but you would need to set up SSL for your new domain.

      Admin

  43. Mark

    Perfect! Thank you for a great post!

    • WPBeginner Support

      You’re welcome :)

      Admin

  44. Joshua

    OK, I’m tracking with most of this guide, but what particular steps do I need to take if my website is hosted with HostGator, my old domain is registered with GoDaddy, and my new domain is registered with Domain.com? Do I have to link the new domain with HostGator hosting in some way before I can create a new database in Step 2?

    • WPBeginner Support

      You would normally want to point your domain’s nameservers to where the new domain would be hosted to link the domain to your host.

      Admin

  45. Kay

    Thanks for these clear steps! I have one question. So I moved everything to the new domain name and have applied the 301 redirect at the old domain. Should I keep the pages and posts on the old domain or simply remove those? Because doesn’t google see those pages as copies now I’ve basically duplicated the website? Also, I thought it would free up some spaces if I remove them. However, I would love to hear what’s the best thing to do here.

    Extra info: I’m not planning to use the old domain anymore so once the subscription for that domain ends later this year I will not extend it.

    Thank you!

    • WPBeginner Support

      If you have moved all of the content over and created your redirects then you can feel free to remove the old site and its content

      Admin

  46. Manuel

    Hi. I have two questions. The first is how long should the 1st step from the installer take? It’s been extracting the archive files for about 20 minutes and my site isnt that big.

    Also, is setting up the 301 redirects and updating google about the changes necessary if I’m only using the cloned site as a template for the new one? Any pages that are remaining the same will be deleted from the old site.

    Thanks in advance!

    • WPBeginner Support

      It would depend on the size of the site for how long it would take and the 301 redirects are to ensure traffic from your old site is sent to the new site rather than the old address that would not have the content anymore

      Admin

  47. Darren

    I have never done this before, so your instructions were excellent. For any newbies like me – just go through slowly and read each instruction carefully and it will work perfectly.

    • WPBeginner Support

      Glad our guide was able to help you transfer your site :)

      Admin

  48. Christopher Jan Benitez

    Great guide! I successfully moved my site to a new domain using the exact processalthough I have to purchase Duplicator Pro to make it work.

    My question is this: what should I do with the WordPress content on the old domain? Should I just uninstall/delete everything and leave the .htaccess file in there?

    • WPBeginner Support

      That would be a personal preference question, you certainly can remove it and leave the .htaccess as the simplest option :)

      Admin

  49. Rohan

    Hii
    After changing domain name do I need to take apply for AdSense again? my previous domain already has AdSense approved. Do I need to reapply for a new domain name?

    • WPBeginner Support

      You would need to add the new domain to your sites list on your current AdSense account

      Admin

  50. Mickey gee

    this is what i get after i uploaded the file successfully
    Error establishing a database connection

  51. Dileep kumar

    After Move WordPress to a New Domain , How can i change url in Adsense account. And any effect on my adsense earning becouse my blog 2 year old.

    • WPBeginner Support

      You would need to add your new domain to your sites list in your Adsense settings. For earnings, there are too many factors beyond the domain name for us to give you an idea about any changes.

      Admin

      • sunil

        after adding a new domain in AdSense should I remove old domain from adsense?

        • WPBeginner Support

          If you no longer plan to use the old domain then you can remove your old domain from your Adsense.

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.