multisite - DuplicateClone a Multi-site But Use Same Images & Resources?

I'm looking for any advice before taking the step of cloning my main site into a sub-but utilizing the same resourc

I'm looking for any advice before taking the step of cloning my main site into a sub-but utilizing the same resources.

Is this an easy process? I realize I can strictly instruct my url paths, but in some circumstances the resources come from the media library and I may have to be more diligent.

Has anyone done this? Is there an easy way about going about it?

I'm looking for any advice before taking the step of cloning my main site into a sub-but utilizing the same resources.

Is this an easy process? I realize I can strictly instruct my url paths, but in some circumstances the resources come from the media library and I may have to be more diligent.

Has anyone done this? Is there an easy way about going about it?

Share Improve this question asked Aug 29, 2019 at 21:17 Bruce BannerBruce Banner 1
Add a comment  | 

1 Answer 1

Reset to default 0

If you have access to a Linux/Mac/Unix command line with bash, you can do the following:

  • Export your database to an SQL file.
  • Use sed command with -E to run regex search and replace operations on URLs that do not contain wp-content/uploads (or whichever folder contains your media)
  • Import your SQL file to the new server.

The one "gotcha" would be the regular expression required to exclude your media folder.

If you do NOT have access to bash, or do not have strong regex experience, you might review the WPBeginner article How to clone a Wordpress Site in 7 Easy Steps. A friend of mine has used their method several times.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745200239a4616287.html

相关推荐

  • multisite - DuplicateClone a Multi-site But Use Same Images & Resources?

    I'm looking for any advice before taking the step of cloning my main site into a sub-but utilizing the same resourc

    5小时前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信