0

I have a WPMU site in a subdirectory /new/. So my main URL is example.com/new. I have been able to use .htaccess and copy the index.php file into the domain to achieve just example.com for my main site. However...

I have the 'NS Cloner Pro' plugin which clones WPMU sites in one click (great plugin!) but every clone still has the /new/ subdirectory. So what I want is example.com/clone-site-1/ but what I'm getting is example.com/new/clone-site-1.

I've tried using www.interconnectit.com "search-and-replace" script to remove /new/ but what happened was I was getting both example.com/clone-site-1/ AND example.com/new/clone-site-1 which tells me something went wrong.

So how do I create just example.com/clone-site-1/ WITHOUT example.com/new/clone-site-1?

0

Here is the answer that I provided through official support and the ultimate confirmed solution was to move the installation to the domain root and eliminate /new/ altogether; full explanation:

Thanks for your question. Hopefully I understand your scenario correctly. Have you previously been creating subsites the normal way? What do their paths look like?

I'm not sure if even normally created subsites will work with that set up. It seems like that might cause problems with themes and plugins and upload files, etc. because WP multisite will be expecting to reference everything relative to the location in which it is installed ( /new/ )

The Pro version of the Cloner has built in custom site level and global Search and Replace built right in, but even if you use this to replace /new/ with /sub-site-name/ I think you will still run into other problems with permalinks and other parts of WP.

I'm just guessing though and have not played with your specific type of setup before.

If you can move the index.php up to root why can't you just install WPMS in the domain root to begin with. I think you will have a lot fewer issues in the future this way.

Another option would be to only update the URL of the home page like you want (without /new/ ) but keep all the WP standard structure and links in place for everything else. Not totally sure how that would pan out though.

0

For database URL fixing, I always use the Better Search and Replace plugin. Works well for me. https://wordpress.org/plugins/better-search-replace/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.