Changing site URL


#1

I need to change the URL of one of my sites. For example, I want to change the site from 1.abc.com to 2.abc.com.

I’ve tried changing the WordPress Address (URL) and Site Address (URL) in wp-admin but that didn’t work.


#2

ee site edit 1.abc.com

Look for the server_name line, and add your new domain name before the ;.

After you save the file Nginx will reload automatically and the site will respond to both domains.

(You must know how to use vim to use the command above.)


#3

Thanks janiosarmento


#4

hopping into conversation… i want to change my domain to different domain. they will be hosted in the same vps. but after moving i will delete the old site. is this still valid?


#5

What do you mean by “delete the old site”?


#6

let’s say i have a site old.com in the vps. i have a new url. (new.com) i want to migrate of old.com to new.com without destroying the nginx config. after migrate i will delete old.com So I wondered if i could do it this way that you mentioned here ( i checked of EE migration doc. but it is not clear enough. )


#7

If you wish to delete the old site from EE, you should find another way to do it.


#8

i guess. thanks for replying.


#9

Create a new site in EE, then on old site, use a migration plugin tool like Duplicator to transfer files and database to the new site.


#10

thanks for commenting.

i was trying to avoid that. : ) i try to avoid, well duplicator is good but cucumbersome-ish. since both of them was in the same vps, downloading and uploading part seemed redundant as well.


#11

thank you now i can change the domain but how about if i want redirect like

1.abc.com/post1 to 2.abc.com/post1 it is possible?


#12