• Resolved Mr-Silly-Bear

    (@mr-silly-bear)


    Hi,

    Can the free plugin operate with non-standard WordPress site structures?

    I have a few sites that I need to duplicate with the following folder structure:

    public_html/
      content/
        <em>ACTIVE THEME AND PLUGIN FILES</em>
      wordpress/
        <em>CORE WORDPRESS FILES</em>
      env-config.php
      wp-config.php
      index.php
      .htaccess

    I hope this makes sense and appreciate any guidance on this.

    Thanks

    (FYI big fan of the plugin!)

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hey @mr-silly-bear,

    The plugin will archive everything in public_html/ and you can exclude the paths you don’t want on step 1 when you create the package.

    Hope that helps~

    Thread Starter Mr-Silly-Bear

    (@mr-silly-bear)

    Hi Cory,

    Thanks for the response.

    Great! I’ll try it out.

    Thanks

    No Problem…

    Thread Starter Mr-Silly-Bear

    (@mr-silly-bear)

    Hi @corylamleorg,

    The plugin only copied the contents of the WordPress folder, no the public_html folder.

    I’m assuming this is because the WP_SITEURL is set to this directory. Is there a way around this?

    Thanks again for your help.

    This is the code that defines your WP root path. So, however, your system is setting ABSPATH that is how the plugin reads the root.

    if (!defined('ABSPATH')) {
    	define('ABSPATH', dirname(__FILE__));
    }
    
    //PATH CONSTANTS
    if (! defined('DUPLICATOR_WPROOTPATH')) {
    	define('DUPLICATOR_WPROOTPATH', str_replace('\\', '/', ABSPATH));
    }

    This works for about 99.9% of all installs. If you need to adjust it for your site then you can edit the file define.php in the root of the plugin folder to meet your sites custom setup…

    Hope that helps~

    Thread Starter Mr-Silly-Bear

    (@mr-silly-bear)

    Hi @corylamleorg,

    Apologies for the late reply. Thanks for the tip. I’ll give it a go!

    Cory Lamle

    (@corylamleorg)

    No Problem, thxs for the update~

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Compatibility with non-standard WordPress structure’ is closed to new replies.