The solution to this is really round-about. It's probably much simpler to simply move the Wordpress files into the new location and then make changes. Since you're going to have to this anyway. I will give you two links for immigrating Wordpress - one straight from Wordpress support:
Migrating Wordpress on Web Hosting Hub
Just make sure to backup your site before you move it, regardless of its location. Then when you're finished moving it, make another backup.
If you have any further questions, please contact technical support or leave a comment at the bottom of the page.
|Email:||support@WebHostingHub.com||Ticket:||Submit a Support Ticket|
|Chat:||Click To Chat Now|