Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Pierre Dargham

    (@pdargham)

    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 !)

    Plugin Author Pierre Dargham

    (@pdargham)

    Two more things :

    – I modified the file : it’s better to save the original site id than its url, and to retrieve the url after that.

    – Complete solution could be a dynamic per-post solution :

    – if the current post is a duplicate
    – get the original post permalink by querying on original site
    – create the canonical rel tag with the original permalink

    What do you think of it ?

    Thread Starter frenchmedia

    (@frenchmedia)

    i will test it there is a plugini called https://plainviewplugins.com/threewp-broadcast-premium-pack/

    that i purchased sending post from one site to another adding the rel canonical once moved to the other site
    it does not clone but this is very efficient
    I will test in staging in few hours and come back to you

    i need to duplicate a complete site from one city to anohter and work on it after but i can not have duplicate content all the way

    now maybe on the same domain like x.toto.com or y.toto.com google is not that difficult

    i do not know

    thanks

    Plugin Author Pierre Dargham

    (@pdargham)

    I think for this precise need, what you can do is :

    – Each time you print a content, check on the parent/original site if the content exists (use post id / term slugs )

    – If it exists, print original canonical as permalink

    – Else, let WordPress default canonical happen

    If you know WordPress and PHP, with a few small functions and hooks, you can do it pretty fast.

    I added what I think would be a more complete solution for my plugin here :

    https://github.com/pierre-dargham/multisite-clone-duplicator-canonical-links/blob/master/todo.php

    I think I will implement it within a few weeks.

    Best regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘SEO’ is closed to new replies.