• I would like to create a sandbox so I can test stuff out before putting it on my public site. So it occurred to me that I could create a subdomain and restore a backup to the subdomain.

    It worked – sort of. My site is hosted on bluehost and the domain is xyz.com so I created a subdomain called restore. Then I unzipped a backup into the “restore” folder. Then I used mysql manager to create a new DB and I used phpmyadmin to import the .sql file created by the backup. Next I changed site_url and home_url to point to xyz.com/restore. And after that I changed wp-config.php to have the new db name, user name and password.

    It worked okay. I could open xyz.com and xyz.com/restore. I gave each its own background so I would be able to tell which was which. But then I found a problem.

    Whenever I click on a menu link from the restore site I end up back on the original site.

    Can anyone tell me why?

    Thanks!

Viewing 1 replies (of 1 total)
  • It’s been a while since you opened this post, but I’ll respond anyway in case it helps anyone else.

    Try removing the menu items and re-adding them, or create a new menu. Another thing you can try is go into Settings > Permalinks > Click Save. This will refresh the links, in most cases this should work, especially seeing as this sub-domain has it’s own database.

    One thing though, a sub-domain (if you created it in cPanel) would be:
    restore.xyz.com whereas xyz.com/restore is simply a new destination folder. So just double check your not using the original sites DB, because technically xyz.com/restore is still a part of xyz.com.

Viewing 1 replies (of 1 total)
  • The topic ‘Creating a sandbox site’ is closed to new replies.