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

Jak łatwo przenieść WordPress do nowej domeny (bez utraty SEO)

Przeniesienie twojej witryny WordPress do nowej domeny to duży krok, który wymaga starannego planowania. Zmiana nazwy twojej domeny może mieć wpływ na rankingi SEO, więc ważne jest, aby przeprowadzić ten proces ostrożnie.

Chociaż tymczasowe wahania SEO są nieuniknione podczas migracji domeny, można zmniejszyć ich wpływ. Przy odpowiednim podejściu będziesz w stanie szybko odzyskać swój ruch i rankingi wyszukiwania.

W tym przewodniku przeprowadzimy Cię przez prawidłowy sposób przeniesienia WordPressa do nowej domeny bez utraty SEO.

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

Migracja twojej witryny WordPress na nową nazwę domeny może być przerażająca, ale nie musi. Jesteśmy tutaj, aby przeprowadzić Cię przez każdy etap tego procesu.

Możesz kliknąć dowolny z poniższych odnośników, aby przejść do konkretnego kroku migracji twojej witryny WordPress do nowej nazwy domeny:

Film instruktażowy

Subscribe to WPBeginner

Jeśli wolisz pisemne instrukcje, czytaj dalej.

Co należy wiedzieć przed zmianą domeny

Zanim zaczniesz, powinieneś wiedzieć kilka rzeczy.

Proces przenoszenia do nowej domeny będzie miał tymczasowy wpływ na twoje rankingi w wyszukiwarkach, ponieważ Google i inne wyszukiwarki będą musiały dostosować się do zmian.

Będzie to miało również tymczasowy wpływ na twój ruch z wyszukiwarek. Należy pamiętać, że jest to normalne i zdarza się wszystkim witrynom internetowym, które przechodzą na nową domenę.

Możesz jednak znacznie zmniejszyć wpływ na SEO, postępując zgodnie z tym przewodnikiem. Pokażemy ci właściwy sposób przenoszenia twojej witryny WordPress na nową nazwę domeny, konfigurowania odpowiednich przekierowań 301 i powiadamiania wyszukiwarek.

Należy pamiętać, że ten przewodnik nie dotyczy przenoszenia witryny WordPress na nowego hosta. Dotyczy on wyłącznie zmiany nazwy domeny. Chociaż proces jest podobny, istnieje kilka dodatkowych kroków. Te dodatkowe kroki pomogą ci zabezpieczyć twoje rankingi SEO i ruch.

Wreszcie, jeśli twoja stara witryna internetowa znajduje się na WordPress.com, musisz postępować zgodnie z instrukcjami w naszym przewodniku, jak przenieść się z WordPress.com na WordPress.org.

Kroki wstępne: Czego potrzebujesz, aby zacząć

W tym przewodniku zakładamy, że twoja witryna internetowa WordPress jest skonfigurowana na oldsite.com i próbujesz przenieść ją na newsite.com.

Zakładamy również, że posiadasz już konto hostingowe WordPress i jesteś zaznajomiony z panelem sterowania Twojego hostingu.

Będziesz także musiał wiedzieć, jak korzystać z klienta FTP, takiego jak FileZilla, lub jak edytować pliki za pomocą aplikacji Menedżer plików dostępnej w kokpicie twojego konta hostingowego.

Jeśli nie masz dostawcy hostingu lub chcesz zmienić dostawcę, zalecamy skorzystanie z Bluehost (świetny dla małych witryn + bezpłatna domena) oraz SiteGround lub WP Engine (świetne dla większych witryn lub sklepów internetowych).

Gdy masz już te rzeczy na miejscu, jesteś gotowy do rozpoczęcia procesu!

Krok 1: Utwórz pakiet Duplicator Twojej witryny WordPress

Pierwszą rzeczą, którą musisz zrobić, jest utworzenie pełnej kopii zapasowej twojej witryny WordPress.

Następnie użyjesz tej kopii zapasowej do utworzenia duplikatu twojej witryny internetowej, abyś mógł poprawnie skonfigurować przekierowania ze starej domeny do nowej.

Chociaż dostępnych jest wiele wtyczek do tworzenia kopii zapasowych WordPress, w tym poradniku będziemy używać Duplicatora.

Duplicator to najlepsza wtyczka do tworzenia kopii zapasowych i migracji WordPress. Używaliśmy jej do migracji niezliczonych witryn internetowych zarówno dla naszych własnych firm, jak i klientów. Przekonaliśmy się, że działa niezawodnie, nawet w przypadku bardzo dużych witryn internetowych.

Uwaga: Dostępna jest również bezpłatna wersja programu Duplicator, której można użyć do tej migracji. Zalecamy jednak uaktualnienie do płatnego planu, aby odblokować więcej funkcji, takich jak automatyczne tworzenie kopii zapasowych w chmurze, odzyskiwanie witryn internetowych jednym kliknięciem, łatwiejsze migracje i wiele innych.

Zacznijmy od zainstalowania i włączania wtyczki Duplicator na twojej starej domenie. Aby uzyskać więcej informacji, zobacz nasz przewodnik krok po kroku, jak zainstalować wtyczkę WordPress.

Po włączeniu wtyczka doda pozycję menu Duplicator w twoim panelu administracyjnym WordPress. Musisz kliknąć menu Duplicator, a następnie kliknąć przycisk „Utwórz nowy”, aby utworzyć nowy pakiet lub kopię twojej witryny WordPress.

Create a new Duplicator package

Duplicator zainicjuje teraz kreatora wstecznego i automatycznie przypisze nazwę do tego pakietu.

Kliknij przycisk „Dalej”, aby kontynuować.

Duplicator package name

Duplicator przeprowadzi teraz kilka testów, aby sprawdzić, czy wszystko jest w porządku. Jeśli wtyczka znajdzie problem, pojawi się ostrzeżenie z instrukcjami.

Jeśli wszystkie elementy są oznaczone jako „Dobre”, kliknij przycisk „Utwórz”.

Duplicator build package

Wtyczka rozpocznie teraz tworzenie pakietu Duplicator plików twojej witryny internetowej. W zależności od rozmiaru twojej witryny, proces ten może potrwać kilka minut.

Po zakończeniu pojawi się opcja „Pobierz”. Kliknięcie jej spowoduje wyświetlenie opcji pobrania obu plików lub pobrania osobno instalatora i archiwum (zip).

Duplicator download both files

Wybierz „Oba pliki”, aby pobrać je na twój komputer.

Plik archiwum to kompletna kopia twoich plików WordPress. Obejmuje on twoje motywy WordPress, ustawienia bezpośrednich odnośników, wtyczki, przesłane pliki i wszelkie inne pliki utworzone przez wtyczki WordPress.

Skrypt instalatora to plik PHP, który zautomatyzuje i uruchomi migrację WordPressa poprzez rozpakowanie pliku archiwum.

Krok 2: Utwórz bazę danych dla twojej nowej nazwy domeny

Przed przeniesieniem twojej witryny WordPress do nowej domeny, będziesz potrzebował nowej bazy danych SQL, aby rozpakować WordPress na nowej nazwie domeny.

Jeśli baza danych została już utworzona, można pominąć ten krok.

Aby utworzyć bazę danych, należy przejść na kokpit cPanel twojego konta hostingowego, przewinąć w dół do sekcji „Bazy danych”, a następnie kliknąć ikonkę „Bazy danych MySQL”.

Pokażemy, jak zlokalizować go na Bluehost, ale podstawowe instrukcje są takie same i powinny mieć zastosowanie do wszystkich dostawców hostingu.

Zaloguj się do kokpitu swojego konta Bluehost i kliknij przycisk „Ustawienia” pod swoją witryną internetową.

Bluehost site settings

W ustawieniach twojej witryny musisz przejść do karty „Zaawansowane”.

Przewiń nieco w dół do sekcji cPanel i kliknij „Zarządzaj”.

Bluehost cPanel

Spowoduje to otwarcie kokpitu cPanel.

Przewiń w dół do sekcji Bazy danych i kliknij opcję „Bazy danych MySQL”.

Bluehost cPanel MySQL Databases

Uwaga: Twój panel sterowania hostingu może wyglądać nieco inaczej niż na zrzutach ekranu. Jednak nadal powinieneś być w stanie znaleźć sekcję Bazy danych z opcją tworzenia nowej bazy danych.

Wystarczy podać nazwę twojej bazy danych, a następnie kliknąć przycisk „Utwórz bazę danych”.

Bluehost cPanel create MySQL database

cPanel utworzy teraz nową bazę danych. Następnie należy przewinąć w dół do sekcji Użytkownicy MySQL.

Następnie podaj nazwę użytkownika i hasło dla twojego nowego użytkownika i kliknij przycisk „Utwórz użytkownika”. Pamiętaj, aby zanotować nazwę użytkownika i hasło w bezpiecznym miejscu.

Bluehost cPanel add MySQL database username and password

Nowy użytkownik, którego właśnie utworzyłeś, nadal nie ma uprawnień do pracy na bazie danych. Zmieńmy to.

Przewiń w dół do sekcji „Dodaj użytkownika do bazy danych”. Najpierw wybierz utworzonego użytkownika bazy danych z menu rozwijanego obok pola „Użytkownik”. Następnie wybierz utworzoną przed chwilą bazę danych i kliknij przycisk „Dodaj”.

Bluehost cPanel Add user to database

Następnie zostaniesz poproszony o wybranie uprawnień dla użytkownika.

Wybierz „Wszystkie uprawnienia” i kliknij przycisk „Wprowadź zmiany”, aby kontynuować.

Bluehost cPanel MySQL database user privileges

Twoja baza danych jest teraz gotowa i może być użyta do przeniesienia WordPressa na nową nazwę domeny.

Zanotuj nazwę bazy danych, nazwę użytkownika i hasło. Informacje te będą potrzebne w następnym kroku.

Krok 3: Rozpakuj WordPress na twoją nową nazwę domeny

Teraz musisz przesłać pobrane wcześniej pliki Duplicator do twojej nowej domeny.

Pakiet Duplicator obejmuje również twoją instalację WordPress. Oznacza to, że nie musisz instalować WordPressa na twojej nowej domenie.

Najpierw połącz się z twoją domeną za pomocą klienta FTP. Po połączeniu upewnij się, że katalog główny twojej witryny internetowej jest całkowicie pusty.

Następnie można przesłać archiwum i pliki instalatora do katalogu głównego. Zazwyczaj nazywa się on public_html.

Upload Duplicator files to new domain name

Po zakończeniu przesyłania obu plików możesz teraz rozpakować WordPress.

Otwórz nową kartę przeglądarki i przejdź pod następujący adres URL:

http://example.com/installer.php

Nie zapomnij zastąpić example.com twoją nową nazwą domeny. Spowoduje to uruchomienie kreatora migracji Duplicator.

Duplicator installer wizard

Instalator wyszuka plik archiwum, a następnie automatycznie wybierze opcje na ekranie.

Przewiń nieco w dół, aby wpisz informacje dotyczące bazy danych utworzonej w poprzednim kroku.

Duplicator add database info

Następnie Duplicator automatycznie wyświetli adres URL twojej starej i nowej domeny.

Jeśli wszystko wygląda dobrze, kliknij przycisk „Zatwierdź”, aby kontynuować.

Duplicator validate details

Duplicator podejmie teraz próbę połączenia się z bazą danych przy użyciu podanych informacji.

Po pomyślnym zakończeniu wyświetli się komunikat Validation Pass. W przeciwnym razie zostanie wyświetlone ostrzeżenie ze szczegółowymi informacjami na temat poprawki.

Duplicator validation passed

Kliknij przycisk „Dalej”, aby kontynuować.

Duplicator rozpocznie teraz importowanie twojej witryny internetowej WordPress. Po zakończeniu pojawi się komunikat o powodzeniu z przyciskiem logowania administratora.

Duplicator migration finished

Duplicator automatycznie zaktualizuje adresy URL do twojej nowej nazwy domeny. Możesz teraz kliknąć przycisk „Admin Login”, aby wykonać kolejne kroki.

Krok 4: Ustaw trwałe przekierowania 301

Następnym krokiem jest skierowanie użytkowników odwiedzających twoją starą domenę na nową. Odbywa się to poprzez ustawienie przekierowań 301.

Przekierowania 301 są bardzo ważne dla SEO i doświadczenia użytkownika. Dodanie ich pozwoli na automatyczne przekierowanie użytkowników i wyszukiwarek na twoją nową nazwę domeny.

Innymi słowy, za każdym razem, gdy ktoś wyląduje na wpisie lub stronie w twojej starej domenie, zostanie automatycznie przekierowany do tego samego wpisu lub strony w nowej domenie, zamiast widzieć błąd 404.

Aby utrzymać przekierowania na miejscu, musisz włączyć starą instalację WordPress, aby mogła nadal przekierowywać do nowej, właśnie utworzonej.

Istnieją dwa sposoby konfiguracji przekierowań. Pierwsza metoda jest łatwa i wymaga zaledwie kilku kliknięć. Druga metoda wymaga ręcznej edycji plików.

Metoda 1: Skonfiguruj przekierowania 301 za pomocą All in One SEO

Do tej metody będziesz potrzebował All in One SEO (AIOSEO). Jest to najlepsza wtyczka WordPress SEO na rynku, która pozwala łatwo zoptymalizować twoją witrynę internetową WordPress pod kątem SEO.

Po pierwsze, musisz zainstalować i włączyć wtyczkę All in One SEO na twojej starej domenie. Aby uzyskać więcej informacji, zobacz nasz przewodnik krok po kroku, jak zainstalować wtyczkę WordPress.

Uwaga: Aby uzyskać dostęp do dodatku menedżera przekierowań, wymagana jest co najmniej wersja Pro wtyczki. Możesz również skonfigurować AIOSEO na twojej nowej witrynie WordPress, aby jeszcze bardziej zwiększyć rankingi wyszukiwarek i ruch.

Po włączaniu na twojej starej domenie, musisz przejść na stronę All in One SEO ” Redirects i kliknąć przycisk „Activate Redirects”.

Activate redirects

Następnie należy przejść do karty „Pełne przekierowanie witryny” i włączyć przełącznik „Przenieś witrynę”.

Następnie musisz wpisz twoją nową nazwę domeny obok opcji „Przenieś do domeny”.

Full site redirect

Nie zapomnij kliknąć przycisku „Zapisz zmiany”, aby zapisać twoje ustawienia.

Metoda 2: Ręczna konfiguracja przekierowań do nowej domeny

Ta metoda wymaga edycji pliku .htaccess WordPressa na twojej starej domenie.

Najpierw należy połączyć się z twoją starą witryną za pomocą FTP i edytować plik .htaccess.

Będzie on znajdował się w tym samym katalogu, co twój katalog wp-includes lub wp-admin. Otwórz plik .htaccess i wklej następujące linie kodu na samej górze:

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

Upewnij się, że w powyższym kodzie zastąpiłeś newsite. com twoją nową domeną.

Po wprowadzeniu tych zmian przejdź na twoją starą domenę. Powinna ona automatycznie przekierować Cię do nowej domeny.

Jeśli tak się nie stanie, oznacza to, że przekierowanie nie jest skonfigurowane prawidłowo, a twój serwer prawdopodobnie nie obsługuje reguł przekierowań. Musisz skontaktować się z zespołem pomocy technicznej w twojej firmie hostingowej, aby włączyć RewriteEngine.

Krok 5: Powiadom Google o twojej nowej domenie

Teraz, gdy przeniosłeś WordPressa na nową nazwę domeny i skonfigurowałeś przekierowania, nadszedł czas, aby powiadomić Google o twojej zmianie adresu. Pomoże to Google szybko znaleźć twoją nową domenę witrynową i zacząć wyświetlać ją w wynikach wyszukiwania.

Po pierwsze, musisz upewnić się, że zarówno twoja nowa, jak i stara domena zostały utworzone w Google Search Console jako dwie różne właściwości. Instrukcje znajdują się w kroku 1 naszego przewodnika po Google Search Console.

Następnie należy wybrać starą nazwę domeny jako włączoną właściwość w kokpicie Twojego konta Google Search Console.

Select old domain

Następnie kliknij menu Ustawienia w lewej kolumnie.

Teraz możesz kliknąć narzędzie „Zmiana adresu”.

Change of Address

Teraz musisz wybrać twoją nową domenę z sekcji Aktualizuj Google.

Następnie należy kliknąć przycisk „Zatwierdź i zaktualizuj”.

Add new address to change of address

To wszystko. Google potwierdzi teraz, że twoja stara domena przekierowuje do nowej domeny i zapisze zmiany.

Na następnym ekranie Google Search Console wyświetli kreator krok po kroku, aby przesłać twój wniosek o zmianę adresu.

Powiadom swoich użytkowników o nowej nazwie domeny

Podczas gdy przekierowania 301 wykonują swoją pracę, zawsze dobrze jest publicznie ogłosić migrację.

Możesz to zrobić po prostu pisząc wpis na blogu o twojej nowej witrynie i udostępniając go na swoich kontach w mediach społecznościowych.

Jeśli posiadasz subskrybentów newslettera e-mail lub powiadomień push, to do nich również powinieneś wysłać ogłoszenie.

Może to być pomocne na wiele sposobów.

Przede wszystkim, twoi użytkownicy z większym prawdopodobieństwem zapamiętają nową domenę, gdy już o niej przeczytają.

Po drugie, możesz poprosić swoich użytkowników, aby dali ci znać, jeśli zauważą jakieś błędy. Sam nie jesteś w stanie przetestować swojej witryny w każdym rodzaju przeglądarki lub środowiska systemowego, więc zawsze pomocne jest spojrzenie na nią świeżym okiem.

Zasoby bonusowe

Poniższe artykuły i poradniki pomogą ci śledzić i odzyskać twoje rankingi SEO po migracji do nowej nazwy domeny:

Mamy nadzieję, że ten poradnik pomógł ci przenieść twoją witrynę WordPress na nową nazwę domeny. Możesz również zapoznać się z naszym przewodnikiem na temat tego , jak uzyskać bezpłatną domenę e-mail lub postępować zgodnie z instrukcjami w naszym kompletnym przewodniku SEO WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Ujawnienie: Nasze treści są wspierane przez czytelników. Oznacza to, że jeśli klikniesz na niektóre z naszych linków, możemy otrzymać prowizję. Zobacz jak WPBeginner jest finansowany, dlaczego to ma znaczenie i jak możesz nas wspierać. Oto nasz proces redakcyjny.

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.

Najlepszy zestaw narzędzi WordPress

Uzyskaj BEZPŁATNY dostęp do naszego zestawu narzędzi - zbiór produktów i zasobów związanych z WordPressem, które każdy profesjonalista powinien mieć!

Reader Interactions

508 komentarzyZostaw odpowiedź

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

    How do you do with old 301s in htaccess that go from old sub-pages to new sub-pages in the old domain?Thanks for a very good guide!

    • WPBeginner Support

      With how the redirect code is set up it should redirect all of your content on your site not only the home page.

      Administrator

      • Karina

        But old 301 on the old domain then?

        • WPBeginner Support

          Correct, create the 301 redirects on the old domain.

  3. Jip Meertens

    Great hands-on tut up to the almost-end of step 3.
    Now did I oversee something? I am completely blank on how (which user/pw combination to use) to log in to the new WP admin?
    Nowhere on the journey did I make a new WP installation, so I do not store any log-in credentials for the WP dashboard… Pls?

    • WPBeginner Support

      You would use the same login information as the previous site as the user table would be duplicated in this process as well :)

      Administrator

  4. shantell smith

    I searched for two days until I came across your blog. I have tried 3 or 4 different codes and none of them worked. I tried yours and it worked like a charm. Thanks. But this post needs to be updated. You can no longer switch back to the old version of Console and I was unable to find a change of address option.

    But still great posts. Thanks a bunch!

    • WPBeginner Support

      Glad our recommendation worked, Google has changed where it is located but if you use their search for tools in your console you should still be able to use the change of address tool.

      Administrator

  5. Viral

    Many thanks for this very helpful tutorial. It has worked perfectly!

    Just a small query… In the last step 5, Google Search Console says this 'Change of Address’ function works only for root level domains (while I’ve a blog address in the form abc.co.in/example)

    Hence, is there an alternative method that can be used here, or will the 301 redirects (incorporated in Step 4) suffice?

    Many thanks again for the wonderful help throughout all the articles… Lots of good wishes!

    • WPBeginner Support

      If it is not only the root domain then the 301 redirects would be what you want to stay with and should be good enough for now

      Administrator

  6. Matt Pettitt

    Hi, thanks – this is interesting.

    Two weeks ago I migrated 3 sites into 1 new site, using the above process. All looks good as far as 301 re-directs are concerned but very few of the posts on the new domain are showing in the SERP. Also, many still have the old domain – because of this, organic traffic is down about 60% currently.
    Do you know how long it takes for Google to re-crawl, re-index and sort this stuff out?

    • WPBeginner Support

      Sadly, when merging multiple sites rather than only changing the domain, it can vary from site to site for how long it takes.

      Administrator

  7. Samson Ogola

    This tutorial is always my go-to piece whenever I’m moving or redirecting a website. A life-saver I must say.

    • WPBeginner Support

      Glad our guide can help :)

      Administrator

  8. John Akpama

    Thanks for being such an immense help. I have a challenge in using Duplicator. I went as far as creating the package and uploaded it to the new domain (a subdomain actually). The problem is when I try to install it I get a 403 error that keeps me stuck at the 1st step. How do I resolve this please?

  9. Ibrahim Garba

    I’m so excited! Finally moved my wp site without any issue. Thanks

    • WPBeginner Support

      You’re welcome, glad our guide could help :)

      Administrator

  10. Himanshu Nishad

    Here, you told the old domain is redirected to the new domain.
    If I have to show a website in the old domain name. I will be able to upload website old domain name?

    • WPBeginner Support

      You would need to clarify your question. If you redirect the old domain but want a site on the old domain then you would need to remove the redirection for the site content to show

      Administrator

  11. zeeshan malik

    as usual very well explain each step. i want to add one more point some websites leave a message in old domain when someone visit to old domain he
    reads about website transferred to an other domain like stumble upon when i visit to this site i read stumble up move to mix.

    i want to know is it possible to move data like classified ads from one website (website created in WordPress to another website with same domain name but CMS platform change to Joomla or Drupal or in reverse? without effecting website SEO?

    • WPBeginner Support

      Changing platforms will always have a temporary effect on your SEO but overall there shouldn’t be any long-lasting effects on your site’s SEO

      Administrator

  12. Ana

    Best articles on the planet! Thank you WPBeginner for making life so much easier for the non-tech website owners!

    Keep up the good work

    • WPBeginner Support

      Thank you, glad you like our articles :)

      Administrator

  13. Alix

    Thank you so much for this!

    I always thought this was a daunting task but you have made it so very easy.

    Great article.

    • WPBeginner Support

      Thank you, glad we could help simplify the process :)

      Administrator

  14. Paul Therond

    How long do you recommend keeping the old website domain redirecting to the new domain for the purposes of SEO? Is it best to keep it forever or is there a point where all the juice from the old domain has been passed onto the new one and the old domain can be discarded?

    Thanks for your article it gave me the push to finally do the rebrand launch!

    • WPBeginner Support

      Sadly, that question varies from site to site and what works best for the individual

      Administrator

  15. Michael Chibuzor

    Thorough content. Thank you. My question is, in Step 3 you said „make sure the root domain is completely empty.” I’m a bit confused here. I want to be able to move an old site to a new one site, these are not empty domains but functional websites with about 50 pages each.

    The reason why I want to merge Site A and Site B (the main site becomes Site B) is because they’re both in the same industry, so I want to stay focused.

    Can I still use this tutorial to migrate my old site to the new site — seeing the root domain isn’t completely empty?

    Please help me.

    • WPBeginner Support

      For what it sounds like you’re wanting to do, you wouldn’t want to use this guide, you would want to import your content on to the site where you want it to appear and then have your hosting provider set the secondary domain to point toward your primary domain.

      Administrator

  16. Martin

    Hi. This is not redirecting the main domain (e.g example.com) but only every other link after it. How to redirect even the main domain?

    • WPBeginner Support

      You may want to check with your hosting provider to ensure they’re not preventing the redirect in some way

      Administrator

  17. Cassandra

    I am stuck at step 3. I try to go to example.com/installer.php (yes I use my domain name) and nothing happens. It just takes me to my site welcome page saying a new webpage will be built soon. I cannot get the duplicator app to come up. I saw other comments on here to use www. first but that also does not work. Help please!

    • WPBeginner Support

      You may want to check with your hosting provider to ensure they don’t have a plugin or temporary page that would be preventing you from seeing the location or logging into a pre-installed WordPress site.

      Administrator

  18. Arup

    Well described.

    But I am not using any cPanel right now. What I supposed to do on that step. Pls help.

    • WPBeginner Support

      It would depend on what your host is using for the steps you need.

      Administrator

  19. chandranath shetty

    Great Article

    What if i wanted to keep the some artcile in old domain and move around 200 articles to new domain

    Will 301 redirects are sufficient to pass the link juice

    • WPBeginner Support

      It will keep some of the SEO, however, if you’re not transferring the entire site then you would lose any weight your domain added to your articles.

      Administrator

  20. Corina

    Hi! Thanks so much for your help and guidance. I’ve just written to the Google Search Console community.

    Corina

  21. Corina

    I followed the steps you guys mentioned above and I got to step 5 – notify Google. After verifying my new domain, I tried the change of address from my older one to the new one and I got stuck. When I go to the „change of address” page/ pick your new site from the list, it does not show me the new site. I clicked on „add it now” and it does show up on that page along with the older domain. Yet, I cannot pick it from the list (it does not show no matter what I do). I verified the site several times with TXT and via Bluehost.

    • WPBeginner Support

      You may want to check with Google’s search console that you are the owner of both domains in the system as that can sometimes be the issue.

      Administrator

      • Corina

        Hi! Thanks for getting back to me.

        I am the owner of both domains. I checked for each domain in Google Search Console/ Settings/Ownership verification. It says „you are a verified owner” for both of them.

        Sorry, I’m not a technical person, so I don’t know what I don’t know and I’m at a loss.

        Thanks so much for your help with this!

        Corina

        • WPBeginner Support

          Sadly, you may need to reach out to the support forums for the Google search console and let them know you’re domain is not a selectable option

  22. joei

    Hello, do you have tutorial how to make sub.mysite.com to newname.com without losing SEO hope you reply i needed this tutorial.

    Thank you.

  23. Lee

    Is this the same process if I want to move only my all posts to a new domain?

    • WPBeginner Support

      You could certainly follow this method and then remove everything that isn’t a post. Another option would be to set up a new site then export only your posts under Tools>Export to import them on the new site using Tools>Import

      Administrator

  24. Odidi Junior Meshach

    This article helped me alot brooo. I have bookmarked it.
    Today was able to move my old domain to my new one

    Thanks alot wp beginner ☺.

    • WPBeginner Support

      You’re welcome, glad our guide could help :)

      Administrator

  25. Eddie

    Hi, how about domain redirect from domain provider dashboard (namecheap as example)?
    I don’t want continue pay old hosting, because is expensive.

    • WPBeginner Support

      You would want to reach out to your new hosting for their method to transfer the domain as each provider can have a slightly different method.

      Administrator

  26. Leo

    Hello:

    I need to design a new wordpress site with a new theme.
    I want to do it in a subdomain while the original website keeps working.
    I have thought that when finished designing the whole site, migrating it to the main domain, overwriting the former site.

    Is it possible?
    Does this keeps the SEO ranking of the original site?

    I’d be very grateful if somebody could answer.

    Best

    • WPBeginner Support

      You would want to check with your hosting provider for if they have an option for a staging environment to do what you’re wanting. Depending on the changes you make it could affect your SEO.

      Administrator

  27. Raúl Morales

    Hi! Thanks for this article.

    I followed the instructions with a test site and everything worked perfectly. But now that I’m trying to move my main site (7+ GB), Duplicator shows error after error related to my hosting. I’m trying to move both to another host and another domain. Any ideas on alternatives to Duplicator?

    Best

    • WPBeginner Support

      We do not have an alternative recommendation at the moment but if you reach out to the plugin’s support they may have a recommended workaround.

      Administrator

  28. Fred

    moving all business under parent X to Z
    x.com to z.com
    content from X into sub folder of Z
    any particulars to be aware of?

    • WPBeginner Support

      The plugin should handle moving the content to the correct url

      Administrator

  29. john

    Hi,
    I am currently running a wordpress site which i built 4years ago. Now my client wants to change the feel of the website. i just bought another theme for the for the new website. 1. How do i build the new website without disrupting the old site? 2. How do I easily switch the new site with the old site ? Any answers

  30. Narendra

    Hi!
    I only want to change hosting. While wanting to keep the same domain. For that we need to build the database on new hosting Or upload the old one.

  31. Nourdin

    Can i change my dmain name to be with www.
    With the same name
    The exisiting one does not have www
    But i am planinig to move it to be with www.

    Both names has almost the same DA, PA and moz rank.

    I am worry about the rankning in google?

    Best Regards
    Nourdin

  32. Eyad

    I did this successfuly 2 years ago when I changed my business name and domain. As far as SEO goes, do I still need to keep my old site hosted after 2 years? The old site is still redirecting to new site. please let me know, thanks!

    • WPBeginner Support

      After two years it normally becomes personal preference on if you should maintain the old site, it is not required.

      Administrator

  33. Saweel ur Raheem

    Thank you for creating such an article.

    I have redirected my 1st website with 301 (Permanent) to the 2nd website. Its been almost 5 months and my second website isn’t at the same Domain Authority.

    Why not all Domain Authority of my old domain has transferred to my new domain?

    • WPBeginner Support

      There are too many possible reasons for a change in domain authority, it could be anything from a Google algorithm change to any other factors.

      Administrator

  34. Jimmy

    This is really an awesome guide. Just a question.

    Since the site is relatively new and not much traffic is coming, After the files have been moved to a new domain, instead of redirecting 301, can I just delete the old site?

    I really need your thoughts on this guys!

    • WPBeginner Support

      If you’re not worried about traffic to the old domain, you could certainly do that

      Administrator

  35. Eyad

    I did this successfully two years ago because I changed business name and domain, but I have a question regarding my old domain (which is still redirecting to new domain). I did this to keep all SEO from old site. Should I still continue to keep my old site hosted? Or is it safe, after two years, to remove hosting from old site.

    • WPBeginner Support

      After 2 years it is normally safe to remove the old site completely.

      Administrator

  36. Javed Isaac

    Hi Thanks for sharing this awsome guide. Can i know you that how much it will take time to moving old domain to new domain url in google. And, I have DA PA high of .com domain now i have move on .net some cause of issue. So my old domain DA PA will move on new one i mean on .net.?

    • WPBeginner Support

      For the change of address, if both domains are verified then it should take effect once you submit.
      Following this guide will minimize the effect to your domain authority and page authority but no matter what, if you change your domain you will take a hit even if it is a small hit.

      Administrator

  37. Kwabena Okyire Appianing

    I just want to know if i move the entire files from the old domain to the new domain, will it affect the site

    i did that with the cpanel move tool

    • WPBeginner Support

      Doing that you would have moved the files, you would want to ensure you update the urls for your site and in your site’s content as well as inform Google of the move

      Administrator

  38. Farukh Hussain

    Hello, Thankx for helping my all life with each and every WordPress issue. I dont have words to thank for your all efforts to make our life easier with WordPress.

    I also just changed my domain name with your most helpful step by step guide. I am stuck at one point. To redirect my old urls to my new URLs. Do I need a hosting plan for the old domain??

    • WPBeginner Support

      If you use the method in the article you would want hosting for the old domain for some time. If you check with your hosting provider, some of them have methods to point the old domain to the new one.

      Administrator

  39. chris

    Good day Wpbegginer, thanks for this insightful article, I have one question though, Am running a WordPress multisite with sub-directories and I wish to change the domain name of the multisite, my confusion is during the migration will my subdirectories be carried along and change to the new domain i.e (newdomain/subdiretory1) or do I need to add them manually all over again, thanks..

  40. George

    I have completed all the steps to move the website to a new domain.
    The front end works fine: articiles, links, etc.

    The problem: when I try to do to admin dasboard or any link from Admin, I get a blank page: HTTP ERROR 500
    Any solution?

    Thanks!

  41. Patrick Alvarez

    I’ve done a 301 redirect of an entire website from oldsite.com to newsite.com. Can I know delete wordpress and all of the files on the old site?

    • WPBeginner Support

      Hi Patrick,

      If you have setup redirects using .htaccess file on your old site, then yes you can backup your old WordPress files and then delete them.

      Administrator

  42. Tan_veer

    Intaller.php is not opening after putting mynewdomain.com/installer.php, it’s showing 404 error. But I uploaded installer and package on new domain using FTP. I want to transfer existing domain to new domain on existing host and I register the new domain under my existing host as an addon domain.

  43. David

    i want to move my blog to a new url, but on the same host, how can i go about that

    • WPBeginner Support

      Hi David,

      If you want to add a new domain name, then you will need to register the domain name and then add it to your hosting account. Visit the cPanel dashboard and under domains sections you will find the option to add new domain.

      Administrator

      • Davies

        I uninstalled the host under the old domain and installed it on a new domain and also imported the backup on the new domain, but am having issue redirecting the old domain to the new one, here are the domains and the new one (new)

  44. Juan Pablo Silva

    Hy.. I opened a new domain to improve my blog because I was using wordpress.com. Now I want o ensure that all my post are automatically redirected to my new domain. I have a very successful post and I don’t want to lose my SEO. Its possible to do this in the same way???

  45. Kiran Bulbule

    Your all tutorials are great. I almost learn full wordpress from webeginner. Now, about this tutorial i think you should create a tutorial on All in one migration plugin it is very simple and easy.

  46. Mike

    Great article but needs to be updated. Google sites changed a lot, especially Webmasters, which is just a meta category for few other tools. There is no changing site adres as shown above or maybe it moved to non-findable location? Also new tools are available so almost everything has changed…

  47. kunal kumar

    Sir, i want to ask a question please see this first and answer me ASAP. i read your article/blog thats why i ask this question.

    I was using a domain and a wordpress site is running on it.
    last month in may2018 the mistake happen renewal of hosting is done but domain renewal was skipped. and now that domain become approx one lakh rupee domain, which is not in mu budget. so i think when it will skipped by godaddy after redemption period then i will purchase it.

    Till then i purchased a new domain j”only s added”. and now i want my old site data and its seo all will come on this new domain.

    i repeat now i have no any access of old domain but i can access web hosting where my data is held

    so how i will migrate this or transfer old website data to new domain without loosing seo .please help

    • WPBeginner Support

      Hi Kunal,

      You just need to point your new domain name to the folder where your old website files are stored. We are assuming you have added the new domain name on the same hosting account. Go a head and edit your domain settings, contact your hosting provider for support.

      After that you will have to update URLs in your new WordPress site.

      Administrator

  48. walter rios

    When simply changing domain name to current site, does any changes had to be made to nameservers?

  49. Raju

    I also want to follow the same steps but Do I need to buy new hosting?

    Do I need to delete old site content?

    How can I access old site .htaccess file?

    Thank you :)

  50. Mohammed

    Hi,
    Thanks for the article.
    I have been wondering, after all the process and 301 redirects what happens to my old domain?
    Best regards,
    Mohammed

    • WPBeginner Support

      Hi Mohammed,

      You need to keep the old domain alive as long as possible so that you don’t miss any traffic. However, if you don’t want to, then you can let your old domain expire after at least 6 months.

      Administrator

  51. Jeremie

    Hi,

    Thank you for your tutorial.
    I’m having an issue with Google.

    When I want to notify the change of address, the 3rd step to verify my website always failed. The weird thing is, if I remove the redirection, the verification goes through (but then the 2nd step where Google checks the redirection fails).

    Any idea what I’m doing wrong?

    Thanks for your help!

Zostaw odpowiedź

Dziękujemy za pozostawienie komentarza. Pamiętaj, że wszystkie komentarze są moderowane zgodnie z naszymi polityka komentarzy, a Twój adres e-mail NIE zostanie opublikowany. NIE używaj słów kluczowych w polu nazwy. Przeprowadźmy osobistą i konstruktywną rozmowę.