Hi !
You just point out a real problem there.
For now, our plugin does not provides any SEO specific operation. It just clones the site with SQL copy, search and replace.
After you cloned a site, it is totally independent of the plugin, and the new site is exactly the same as if you had manually created a new site and did all the same operations you did on the original site (configuration, create contents, …)
For now, we want that once the sites are created with the plugin, they don’t need at all the plugin to work.
This is why I think SEO optimizations should be in theme or in a sub-plugin, not in multisite-clone-duplicator itself.
I came up thismorning with an example sub-plugin doing part of the job :
https://github.com/pierre-dargham/multisite-clone-duplicator-canonical-links
What it does, with all the hooks :
– During duplication, save in the wp_options of the new sites the url of the site we just cloned
– Add canonical rel tags in headers for each URL, based on current url / string replace
You can test it and come back to me if you see a better way doing the things ! Complete solution would require seo-by-yoast / all-in-one-seo compatibility, and we should add the canonical urls only on the duplicated contents, not for new created contents that we have to treat separately.
We know site duplication / SEO is a big issue and finding better solutions is in our roadmap.
Best regards,
Pierre
(and if you like this plugin, please add a 5-stars rating !)