Moving files from dev site


#1

I created a dev.mysite to develope my new website. Now that I am almost done, what is the best way to move all the files from dev.mysite.com to mysite.com?
I normally use gFTP to move files to dreamHost but I did not see a way to do this?

Thank you


#2

If they’re in the same user directory, like /home/terrywho/example.com and /home/terrywho/dev.example.com, you can use FTP and just rename those directories:
example.com to example.old
dev.example.com to example.com
example.old to dev.example.com

This will effectively have your domains trade places. Just make sure any internal links and configuration files are updated with the new domain name.