To set up a multisite in subfolder mode for three independent sites with separate databases and domains, you can follow these steps:
- Install and configure WordPress multisite: Enable multisite functionality in your WordPress installation by adding the necessary code to your wp-config.php and .htaccess files, as instructed in the official WordPress documentation.
- Modify table prefixes: Update the table prefixes for the two sites using a plugin like “WP-CLI” or by directly accessing the database. Change the table prefixes to wp_2_ and wp_3_ for the respective sites.
- Export and import tables: Export the tables for the two sites with modified prefixes from their respective databases. Import these tables into the main database using a tool like phpMyAdmin or WP-CLI.
- Update media file paths: Since each site will have a subfolder in the uploads directory, you need to update the file paths. Use a search and replace tool, like “Better Search Replace” plugin, to replace the old file paths with the new ones. This ensures that media files remain accessible after the migration.
- Verify site functionality: Test the functionality of all three sites within the multisite setup. Ensure that the media files are loading correctly and that the custom themes and plugins are functioning as expected.
By following these steps, you should be able to set up a multisite with subfolder mode for the three independent sites. Remember to backup your databases and files before making any changes to ensure you can revert if needed.
Thread Starter
haleks
(@aleksandrhaiko)
Gloria Hooks Thanks! I will try to do it!
-
This reply was modified 2 years, 9 months ago by
haleks.