It used to be that the best way to do this was to simply download all the files to your computer via FTP, then remove them from the server and upload them to the new location. With the common use of databases now, this doesn’t entirely take care of the problem; in many cases entries in the database reference the old domain, making it a long and messy process to complete. It looks like this:
- Download your files
- Edit your configuration file to reference the new domain and path
- Upload the files to the new location
- Export your database
- Edit the database by finding all references to the old domain/path and replace them with the new ones
- Import the database again
- Add your new domain in Plesk
- Go to the 1-click web apps utility and find the web app in the list that runs your site
- Press the Clone button and select the new domain and/or path
- Click Clone or Continue to proceed with the clone.
If you then wish to point the old domain to the new one, you could ask me by commenting, once you’re happy with the new domain, remove the old one in Plesk, then add it as a domain alias to the new domain.
No comments :
Post a Comment