wtorek, 14 stycznia 2014

How to migrate Wordpress from server 1 to 2 and change URL

First create WP on server 1
root/cat1/wp/

Configurate there whole website.

Then I need to switch to another location

server 2 where there was a domain.com

So what to do?

Go to server 1

  • make perma links as default
  • First make copy of all files from server 1 
  • Secend make a copy of DB via phpadmin and check drop table option 


Go to server 2

  • create folder where you want install wp 
  • make redarection from domain.com to this folder
  • copy intallation files of wp 
  • go to install wp
  • remove wp-content folder (server 2)
  • copy wp-content from the server 1
  • remove whole DB (server 2)
  • import DB from server 1 - 1:1 do not change anything
  • log in to admin panel - you will need to use server path if you will be redirected to old admin panel (server 1) go to DB (server 2) and paste path from server 2 to siteurl and home - now you should be able to log into 
eg http://server_name/catalog1/wp_installation_folder
  • change website url to domain.com
  • install http://wordpress.org/extend/plugins/velvet-blues-update-urls/ and swap paths. From server 1 to server 2
  • change siteurl and home url to domain.com 
  • change permalink settings

Brak komentarzy:

Prześlij komentarz