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

    Should I keep all files on my old domain (the whole WordPress installation) or it is enough just to have .htaccess with 301 redirect?

  3. James

    Hi guys,

    The 301 redirect doest redirect the pages, what can I do?

    • Logan Cale

      I had a similar problem with the .htaccess redirect only redirecting the domain (front page), and not the sub-pages, but when I also added the line below in .htaccess file, all sub-pages were then redirected if they had the same exact name.

      Redirect 301 / https://newdomain.com/

      • Euan

        Hi Logan. You, my friend, are a legend. Several hours of searching as I had the same problem – the front page was redirecting but nothing else. I added this line of code and it is now sorted. Thank you!

  4. Kim Saxton

    Hi,
    This has been really useful thank you so much, but I am now a bit stuck.

    I got up to step 2 and ran the deployment button on the installer php site. Then I went away for a week, I made some formatting changes to my newsite (just colour, logo not any changes with pages).

    I now want to update my URLs on the installer update page. But I can no longer access it. It comes up with a 404 error page cannot be found. See
    My old site is

    Can you advise?
    Thanks
    Kim

  5. Sorin Vizireanu

    Excellent post, thank you.

  6. Ashley

    I have a question. We are a business and we just had an ecommerce shop built on our regular business website.

    We know would like to take just the shop and put that on a separate domain.

    How would that process work?

    • WPBeginner Support

      Hi Ashley,

      You will have to set up redirects in a way that only your shop URLs are redirected to the new domain name.

      Admin

  7. Peter Ishola

    How do i download the package files? Do i have to download it from my wordress admin or from my cpanel because i cannot find any download link on my wordpress admin.

    Thanks

  8. Manpreet Singh Rehsi

    Hi,
    Thanks, for such a detailed article. This really helped to moving one of my blog to a new domain last month.

    Right now my blog is undergoing a move in google webmaster. Now I want to implement SSL on my new domain.

    Should I make a move to implement the HTTPS or wait for move to be completed in google webmasters.

    Will SEO will take a negative impact if I implement https now.

  9. Ahmed Rifshaan

    Hello,

    Regarding 301 Redirect you said, we should edit old .htaccess file…

    What if we dont change host, only changing the domain name?

    My site doesnt move, only the domain is changing..

    In that case what should i do?

  10. Jay Soriano

    There is one part that could use a little bit of clarification, and I read through most of the comments and couldn’t find an answer. With regards to the 301 redirect, in the post you mention:

    “In other words, whenever someone lands on one of your old posts or pages, then they will be automatically redirected to your new site.”

    If they land on an old post (olddomain.com/post), will they be redirected to the post on the new domain (newdomain.com/post), or simply to the root domain (newdomain.com)?

  11. Claudio

    How long is it safe continue to keep the older domain and website, after you redirect to new one?

  12. Jo

    Hi, I don’t know if you can help me. I purchased a new domain name from my host. I followed the instructions in this article. When I logged into my FTP client I did so under my old domain name first of all (I think I thought I had to) and then on the ‘new session’ tab I logged in under my new domain name. Under my new domain appeared to be all the same files as my old domain.

    The article said to make sure the root file was empty so I deleted all the files from the new domain name in the FTP client and uploaded the installer.php file and archive zip file.

    When it comes to launching the installer.php file in my web browser it comes up with a 404 error and now I’m stuck. Do you have any advice?

    Thanks!

    • Jo

      UPDATE: I finally managed to get onto the Duplicator and have added a new MySQL database and run the tests. However, now when I try to log in to update the permalinks using my same username and password it says it doesn’t recognise my details. I tried ‘forgot password’ but it didn’t recognise my email.

      It’s also saying there is HTTP 500 error on my new (and old) domain names.

      Any advice would be great, please.

      Thanks!

  13. Amirhossein

    Hi

    I have a theme installed and active on my wp site right now:

    1. It has a custom post type called “video_type”.
    2. The URL pattern of all video_type post are like this: mysite.com/video_type/the-video-name-url. It means the /video_type/ is always there in all video post URLs.
    3. There is another custom post type called “genre”. Which acts as “categories” but only for video_type posts.
    4. The URL pattern for “genres” is like this: mysite.com/genre/the-genre-name-url. It means the /genre/ is always there in all genre URLs. And they contain video post lists.
    5. All of my videos and genres are indexed in google and they mostly rank very well. Some of them rank 1-3.

    Now I want to change the theme. The new theme does not recognize “video_type” and “genre”. And I don’t want theme to be recognized.

    I have decided to change the “video_type” to “post” with “Post Type Switcher” plugin. But after changing type:
    1.”genre” is no longer available for posts (Only categories are available).
    2. And I cannot change the “genre” post type to “categories” with that Plugin.
    3. mysite.com/genre/the-genre-name-url genres will be pages with no content.
    4. The URL of the video posts changes. (there will be no “video_type” in the URL and I don’t want it to be BUT SEO?)

    Here are my goals:
    1. change “genre” to “categories”.
    2. change the “genre” URLs.
    3. change the “video_type” to “post”.
    4. change “video_type” URLs.
    5. I also want to Prune and Optimize my current categories. (Remove, Add and Edit some of theme).

    So I want to know what is the best practice here for “Not having any negative SEO”? And how to achieve these goals anyway?

  14. Michel Fortin

    If I have two different websites and we want to transfer one of them to the other one. The thing is that we want to close the first website now but transfer the content later, what would be the best practice on the redirect side?

  15. Michael Barth

    Thanks for that article, but my problem is a bit more complex. I have a 301 redirect for a domain name I use to a hoster for templates websites. I now have a new hoster and a Wordpress site there. I will change my 301 to now redirect to my new wordpress site. I have no access to the htaccess file on the “old” hoster, and need to cancel the contract anyway.
    Any idea how to best do that .
    Thank you.

  16. Sujeet Thakur

    Thanks a lot from bottom of my heart. My all problem are solved to read your blog. thanks again ..!

  17. saeed

    I am looking to safely migrate wordpress website to new html website without losing the google ranking. please contact

    • Sant

      Hi SAEED,
      Did you move your domain Wordpress to HTML?

      I am planning my website to move from Wordpress to HTML, I want to know is this effects any SEO?
      Please suggest on this?

      Thanks in advance!

  18. Alessandro Bertelli

    Hi.

    I am moving a site from a dummy/test subdomain to the definitive domain (something like moving from temporary.example.com to example.com.)

    While i kept the site mostly offline during developement i forgot for a brief period the site open.
    This was enough for googlebot to snuck in and i find many pages indexed already, with the addresses starting with temporary.example.com/whatever instead of example.com/whatever.

    Now i am going to put online the site on the real address and i fear that the fact that the same pages are indexed twice will damage SEO.

    I have no previous traffic or seo score to save from the test subdomain, can i just delete the old site?

      • Alessandro Bertelli

        Hi, thanks for the answer.

        As i said the site i want to move has no SEO to save… i am only worried of google thinking less of it because of the (temp and no more existing) duplicate pages.

        The redirect would be just for the search bots.
        Is a 301 redirect a better solution instead of just removing the site?

        • WPBeginner Support

          Even if you remove the site, you would still need to tell search engines where it has gone. This way search engines won’t penalize the new and live site for duplicate content. 301 is the HTTP code which tells search engines that the content they are trying to access has moved to this new location.

  19. Jeffrey Collins

    I simply made my site secure, changing the url. I have used a 301 redirect from the root, will that redirect all pages? This is a wordpress site.

  20. Ataul Ghani

    i just move the old domain to new domain. The process was something like that, just install wp to new domain and import all files and database on it. Then old domain made an permanent redirection to new domain. I shared sitemap to web master and other search engine also. Also old domain web master admin i said to change domain name by using domain name changer tools in web master. But still not remove any files from old domain directory, so is that will be problem for me??? lease let me know.

    Thank You!

  21. Rabin Mahmud

    Hello,
    I have a old site but I want to redirect that to new domain without losting my any permanent SEO juice. But I need to know that should I redirect all the urls of old domain to new site similar urls or I just need to redirect the domain Name.
    It’s very important for me to know.
    Thanks

  22. Ravi

    I have properly 301 redirected my site to new domain. Do i need to add sitemap of new domain after redirection and address change at webmaster tools? Also my site traffic has significantly gone down. Around 70% drop within 10 days. Is this normal? And how much time will it take to go up.

    Please answer and help.

  23. Sandy Gogoriya

    I want ask you one question. I have two website. One is old and one is new. so i want transfer my old website 5 post to my new website. Like on my old website have 5 smartphones post and i want publish these post on my new domain with old website content that already publish so what i do now.

  24. Ernest

    Hi, thank you for the great explanation! I am wondering, Does putting the code in the htacces file mean That i don’t need to redirect all individual links? I was looking at the plug-in 301 simple redirects, but there I need to fill in every single link.
    My old site is live for a while so I would like to keep the page values for Google.

    BR!

  25. Josh

    What should be done with the content on the original site after the duplicate content, all 301 redirects. and change of address in the search console are complete? Is it best to remove the original content? Any chance it will get penalized as duplicate content?

    • WPBeginner Support

      You don’t need to have the content live to set up a redirect from one WordPress install to another. But if you do, then that’s alright too, because your users and search engines won’t stay on the old content and they will be redirected. If your content was hosted on a platform like WordPress.com or Blogger, then we would recommend you to keep your content in private mode for at least six months.

      Admin

  26. David Budimir

    Hi there,

    We’re migrating our blog from a blog.domain.com to domin.com/blog. Out site is currently live on our main domain, will migrate the blog to the same database mean we need to access it differently?

    In other words, will it affect our process for creating blog content in the wordpress dashboard?

    Thanks!

    • WPBeginner Support

      No, it wouldn’t affect blog creation. However, you may need to update URLs in database to make sure that they are pointing to the new location.

      Admin

  27. sudhir

    Thanks WPBEGINNER team for writing such an awesome and helpful article. I have followed all steps carefully and migrated my old domain to new domain, everything is working fine except one, that is; my old home url is not redirecting to new one while all internal pages are redirectd to new pages.

  28. Michall Helmbæk

    THX for the best article in a long time that really works!

  29. suhan ahmed

    I want to move my https enabled site to a new https enabled domain for rebranding purpose. For example,
    From https olddomain.com
    To https newdomain.com

    To put 301 code to the .htaccess file of old domain. I need to keep the installation of old domain untouched.

    The problem is here I will need two SSLs, IPs (in some cases, servers) which is a bit costly for me.

    What can be the best solution here?

    Or

    Can I follow the below mention method!!!

    If I switch back to my https olddomain TO http olddomain
    and then from olddomain TO newdomain.

    Will I lose ranking or be penalized by Google here?

  30. roshan christy

    Hi.,
    This is article exactly something I was looking today but a bit confused now. My blog was hacked and was injected with a conditional redirect malware. Since my hosting provider allows two managed Wordpress installs, I migrated the ‘uploads’ folder and database to the other one. Now I wish to change the domain name too as the current one have many external spam websites indexed by Google as subdomains. I want to keep the old domain name but delete the old site with malwares. But this article is suggesting to keep the old website with the .htaccess edit. Can I use the old domain along with new one by deleting the old website?

  31. Leonardo

    Nice, thanks. It was very helpfull!

  32. New

    Hello
    If I just move my content wordpress to newsite as the same domain I am using, Is it neccessary to do 301 redirect?

  33. Rocky

    In new Google Webmaster Tools there is not any option of changes of address option. please tell me now how can i notify google.

  34. Joey Espinoza

    Great tutorial, thank you

  35. Aron Jay

    Does this work to specific posts or it will automatically redirect everything to the new domain.

    I’m planning to move some of my posts to another domain, not entirely the whole blog. Thanks!

  36. Michael J.

    Hi WPBeginner – Your step-by-step guide is great…but, I just have a quick question to confirm before moving forward with changing my wordpress domain…

    Unfortunately, the Duplicator Plugin is not working for me….so, can I manually copy & paste a backup of the my ‘old’ site into a new directory for the ‘new domain?…and follow the rest of the steps above.

    Also, I am using the same hosting for my old & new domain — So, do I create a new directory folder for the ‘new’ domain — and keep the ‘old’ domain folder on my hosting?…basically, my hosting would have (2) site folders?…the old & new.

    I’ve read various places say I only need to point to the new domain on wordpress…however, im extremely concerned with losing my SEO rankings from my old domain, so i’ve been kindda hesitant with the process..

    Any reply would be greatly appreciated…Thanks!

    • WPBeginner Support

      You should create a new directory on your hosting server. Download all your WordPress files and then upload them to the new directory. You will also need to export your old database. Create a new database in your hosting cPanel. Open phpmyAdmin and then import your old database. Rest of the steps would be the same.

      Admin

      • Michael J.

        Thanks for the reply!…I will make sure to follow your detailed instructions.

  37. Bunty Pundir

    Hey,

    I created the package with Duplicator plugin and also, uploaded installer and archive package to new domain but unable to launch installer.php using example.com/installer.php and the browser showing server not found!

    Help please:-(

  38. Mihira

    Success!

    I was afraid to take up transfer of my domain from .in to .com since 6 months or more. This guide is so easy to follow, I was up and running in the new domain within an hour. Thank you wpbeginner for this helpful post.

    One question though… My old domain didnt have such a great SEO characteristics to pass on. I no more want to use that old domain. Can I set a 301 direct in .htaccess of old site and leave it WITHOUT RENEWING THE DOMAIN WHEN IT EXPIRES OVER THE PERIOD?

    Please let me know!

    • WPBeginner Support

      Yes, you can do that. However, it is recommended that you keep the domain up with redirects for at least 90 days. You should also submit a change of address request to Google from Google webmaster tools.

      Admin

  39. Edward

    Another question: if I delete all the old images in the old site folder, google webmaster will tell me there`s 100,000 dead paths and I will have to delete them one by one. Should I just leave the image folder untouched? I don`t want to see all those missing file notifications in my webmasters account.

  40. Edward

    I will be keeping the same .com domain but the images in the old pages will have a different name. ( e.g. from 0429_lg.jpg to ocean_home.lg.jpg so I am changing the name of 10 images ( now will have twice that number ) on each listing with different name. Does that affect SEO? I guess having the new seo friendly name in images might even be better.

  41. Shreya

    Hi there !
    Recently I tried migrating my wp website to new domain ( shared server) but the Duplicator plugin didnt work . Then I opted for manual migration, everything is working well but I can’t aceess my wp-login.php page for my new website in new domain.

    Can you please help me on this matter ? I shall provide more details of both my websites too .

    Thanks .

  42. Zane

    Thank you! Followed instructions and worked perfectly.

  43. Duane Reeve

    I’m busy migrating a clients domain and a relatively old post on MOZ.com states one should redirect each URL independently. While MOZ is an industry leader in SEO, I’m questioning this since their post is from 2009. Is this overkill or the best way to proceed?

    • WPBeginner Support

      If you have a static site with less than 10 pages, then this makes sense. But if you are moving a site with hundereds of posts, then it will be quite difficult to setup each redirect manually.

      Admin

      • Duane Reeve

        Thank You – Clients Wordpress site had 36 pages/posts, which I redirecting manually using the Redirect Plugin. I then updated the sitemap and re-submitted this to both Google & Bing.
        I didn’t redirect image or tag URLs.

        After 48-hours, of doing the page/post redirects, I submitted the URL Address Change to both Google and Bing Webmaster Tools. I decided to give both Search Engine time to detect the Page/Post Redirects and will do a Domain Redirect (using .htaccess file) at the end of the week.

        Based on my Google Analytics & Google Webmaster Tools for the new Domain I’m pretty happy with the results so far.

      • Dario Fumagalli

        What Moz says is 100% safe, whereas what WPBeginner says has one big issue: the old website sitemap.

        Adding a sitewide 301, **also** redirects calls to the old sitemaps, whereas Google needs it to stay in there to prove both the old sitemap and the new one are same or similar.

        Therefore, if you do it the Moz way you are ultra-safe, if you do it the WPBeginner way you need to add exceptions to exclude all the old sitemap index (if any) and sitemap(s) until Google understand both refer to the same ownership.

  44. Mark D

    Hi, I don’t have an FTP provider. When I loaded one, it lit up my anti-virus software. I am trying to create a website for a friend based on my site. Is there an easy, non-FTP solution, to clone to my friend’s domain. Once that’s there, I can then update with her content.

    Thanks,

  45. Lynn Dye

    Is it a good idea to delete my old site (except for the .htaccess file), on my old host so I don’t have 2 exact sites on two hosts?

  46. Nelson

    Can your created a tutorial moving a wordpress site to a new doman wihout a plugin, like for example moving subcategory to the main site or subdoman to the mina site wihtout a plugin.

  47. Satish

    Hi, very useful article but i have a doubt . What if i download my backup manually by making zip, also download the database from Mysql from cpanel.

    And then manually upload to the new host filemanager. Do i need to change the URL in database from old-domain.com to new-domain.com before uploading the database to mysql?
    Hope you understand, what i’m saying!

  48. Daniel Ruyter

    Question on the redirects – I’m currently running two sites (two TLD’s, two hosts) and would like to consolidate into a single site, retiring the “old” site host. Can I redirect the “old” TLD to the new at the DNS and then add rewrite rules to my “new” site’s .htaccess for the migrated posts?

    Thank you!

    -Daniel

  49. Lynn Dye

    This has worked well – question on the redirect. I changed my domain AND hosting. So I’d like to close out my old hosting account.

    How long should I have the redirect for my old domain? I’m planning on keeping the old domain for some time.

    Would a forward on the old domain accomplish the same thing as the 301 redirect?

    • Daniel Ruyter

      I’d keep the old domain name redirected as long as you’re able.

  50. Lynn Dye

    If I used BackupBuddy to move my site to a new domain and then followed the directions to do the 301 redirect, shouldn’t I get the same result

    What about typing in the old and new url that Duplicator has you do – how is that step done with BackupBuddy?

    Thanks for an interesting post.

  51. Katie Steckly

    So if I transfer my site with these exact instructions, with Google analytics automatically keep working? Or do I need to re-install the tracking code on my new site, and take it off the old one?

    • Travis Pflanz

      Google Analytics will still work as long as you use the same UA code as before. That said, it may be worthwhile to setup a new view in your Google Analytics dashboard after you make the change

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.