Webinoly is just the perfect tool for NGINX experts. Give it a try!
0 votes
85 views
by Talented

I am trying to clone a WordPress website (Not a Multisite) from a subdomain (main.example.com) to a subdirectory (demo.example.com/dir1).

I checked the documentation and found below command (Highlighted in yellow)

However, when I tried the same I got the error -> [ERROR] Subfolder not found!

sudo site demo.example.com -clone-from=main.example.com -subfolder=/dir1

Please let me know if I'm missing something!

Webinoly version: 1.17.8

Current stack version: 1.8

1 Answer

0 votes
by Expert
selected by
 
Best answer

That's not how it works!

When using the subfolder parameter, you can only move from domain1/folder to domain2/folder. So, you are receiving an error because that subfolder doesn't exist in the main site.

by Talented
That makes sense! The documentation didn't make it clear, thank you for the quick answer!

Cloning from subdomain/domain to subfolder might bring up more complexity, and would need additional params like source-subfolder and dest-subfolder. Better to handle it manually.

Thanks again!
Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

To report a bug, please create a new issue on GitHub or ask a question here with the bug tag.
Webinoly Support Paypal Donations

PayPal · GitHub Sponsors · Bitcoin

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.

...