Problems replicating WordPress site
-
Without using any plugins etc., I am trying to replicate a WordPress site, which I will call, for the sake of argument, ‘www.mysite.com’, at a different subdomain, ‘staging.mysite.com’. I am doing this via ssh and I have full root access. I have taken a fairly basic approach. What I have done is to replace all instances of the string ‘www.mysite.com’ in the files in the WordPress directory with ‘staging.mysite.com’. Similarly, I’ve done an export (mysqldump) of the database from the live site, replaced all instances of the string ‘www.mysite.com’ with ‘staging.mysite.com’ throughout the SQL dump and imported it for the staging site.
So, theoretically, at this point it should be identical to the original site but with the new subdomain in place. But it’s not working properly – I’m getting some empty links instead of links to pages under the new subdomain and I don’t see how this can possibly happen, given what I’ve done. I’ve tried clearing all caches, to no avail. Any suggestions as to what I might have overlooked? (I should add that all values in wp-config.php have been correctly updated for the new site).
I used the same approach on another site and it worked perfectly, so I’m at a loss to understand how this could possibly not work, as it’s so fundamental and basic.
- The topic ‘Problems replicating WordPress site’ is closed to new replies.