Upload Site to subdomain for testing
-
Hi, I have a simple WordPress website running live now.
I have now developed a new WordPress website on my hard drive using Xampp. This has all been a steep learning curve since I’ve never done any of this before.
Now I want to upload it to a subdomain (as suggested by my hosting co help desk) so I can test that it all works ok before I go live and replace the old site. So I have transferred my files to httpdocs in the subdomain; edited my wp-config file; exported my database from localhost using wp-migrate-db then imported it to the new database I created on the host server. I’ve done this countless times and have not been able to make it work yet! Clearly I am doing something wrong.
1. I’m not sure I have the right path specified in wp-migrate-db’ for the site files. Can I get some advice on how to work this out please?
2. what should .htaccess contain (it currently refers to my C:/ drive subdirectory), or should I just include a “no rules” .htaccess file as exists on my main domain for the existing site?
3. My database exported by wp-migrate-db still contains some references to the Xampp sub-directories on my C:/ drive – that seems weird to me. Could that may be the problem. If so,how do I fix it?My only alternative is to take down my existing site and upload the new site. I feel this might be easier, and I guess I can always reinstate the old site if the new one doesn’t work.
Sorry, I can’t provide a link because the site lives on my hard drive.
I would be very grateful for your advice and assistance.
Cheers
Paul
The topic ‘Upload Site to subdomain for testing’ is closed to new replies.