• Resolved m00min

    (@m00min)


    I’m trying to setup a development copy of a live site and I’m having trouble with what to put in the .htaccess and wp-config.php files.

    I’m copying the site from https://www.livedomain.com to dev.devdomain.com/subfolder

    I’ve changed my wp-config.php settings to:
    $base = ‘/subfolder/’;
    define(‘DOMAIN_CURRENT_SITE’, ‘dev.devdomain.com’ );
    define(‘PATH_CURRENT_SITE’, ‘/subfolder/’ );

    and my .htaccess to:
    RewriteBase /subfolder/
    RewriteRule . /subfolder/index.php [L]

    I’ve also been through the database and replaced the domains. I’m at a loss now as to what more I need to do. I’m getting the Fatal Error page. Help?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Change this RewriteRule . /subfolder/index.php [L]

    back to RewriteRule . /index.php [L]

    By setting Rewrite base, you obviate the need to make further changes.

    I’ve also been through the database and replaced the domains.

    In your database, check wp_site and I THINK you will need to change the value for path from / to /subfolder/

    Thread Starter m00min

    (@m00min)

    Have done all of the above and that got me thinking about the wp_blogs table. Turns out I searched and replaced https://www.domain.com to dev.devdomain.com/subfolder.

    Thanks for your help.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    No prob ?? Sometimes the brain juices need a kick ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Moving WordPress MU 2.9.2 into a subfolder’ is closed to new replies.