Can two installations of WP access the same database?
-
Recently I have had two clients ask me to move their site to a new domain URL on the same server. I was thinking that an easy way to do this would be to install a new instance of WordPress, upload any added content like themes, images, etc. and simply set the config file to point to the existing database. Would that work?
I have tried exporting and importing the data from one site and for some reason it imported the categories but not the post or page content. This got me to thinking that maybe I could just use the existing database instead of exporting & importing. The idea would be to set up the new site, then delete the WP files on the old domain and set up a 301 permanent redirect so that Google will index the new site and not penalize for duplicate content.
Thanks for any advice
- The topic ‘Can two installations of WP access the same database?’ is closed to new replies.