• We have two sites installed, https://www.siteMain.com and https://www.siteMain.com/siteSub, which both have their own separate sql databases.
    I believe the siteSub files are all nested within siteMain at public_html/siteSub/

    We need to trash siteMain and rebuild from a clean WP install, but would like to do so without trashing siteSub.
    Is this likely to be possible, and if so what’s the best way to do it?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You can do as you wish to the main site and it will not affect a site in /subSite/. (except if there are redirect rules in the root .htaccess for /siteSub/, they need to remain)

    If the main site is up to date and functioning normally, and you merely wish to introduce a new site, you don’t really need to fully “trash” the site. You can merely change the $table_prefix assignment in wp-config.php. Then request /wp-admin/install.php to start a new site. WP will create new tables using the new prefix just like it was a brand new installation.

    OK, it’s not necessarily that easy. All your media files for the old site remain in /wp-content/uploads/. You don’t want your new site’s uploads to get mixed up with the old. I suggest renaming the current /uploads/ folder and creating a new, empty one for the new site. Be sure the new folder permissions are the same as the current one. You may wish to eventually delete the old files and drop the old DB tables, but I’d leave them be for a while in case you need to refer back to them.

Viewing 1 replies (of 1 total)
  • The topic ‘Reinstalling with nested site’ is closed to new replies.