Is it possible to have one wordpress installed in the directory of another?
For instance https://www.site1.com and site1.com/site2?
One of my friends runs a woocommerce shop, and wants to have a trade only version as either a subdomain or /site2 however, when I try this and visit the original site just loads and says page cannot be found.
Any advice on how I can get it working?
]]>Yes, you can use have two separate WordPress installations in the same directory. However, you will need to create a sub-directory of the main directory where the root WordPress installation is. So it will technically be a “sub-directory” of the root directory, but it will be its own entity. But you seem to know this considering you put a subdirectory link (site1.com/site2).
You will need to create the sub-directory (site2) relative to the site1 directory. Assuming you’re hosting this remotely it’s most likely in the public_html directory of your server. You will need to create another directory in there and call it “site2” or whatever the sub-directory path will be.
From there, you can install WordPress into that sub-directory and follow the instructions for installing WordPress as needed.
Hopefully, this answered your question!
Thanks!
[ Signature moderated ]