• Hello All,

    When I setup multisite from Live server to localhost. I have got error 404 for multisite.

    My single website is working But when I set in wp-config.php file
    enable below code then not working for multisite.

    define( ‘WP_ALLOW_MULTISITE’, true );
    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, false);
    define(‘DOMAIN_CURRENT_SITE’, ‘localhost’);
    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);

    My .htaccess file code is

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    Please Help me, how to set up multisite localhost from live server.

    Thanks
    Divya

Viewing 1 replies (of 1 total)
  • Moderator Bet Hannon

    (@bethannon1)

    Hi Divya!

    Are you moving a multisite FROM a live server onto a localhost (for testing, perhaps)? OR, are you moving FROM localhost to a live server (from dev to production, for instance)? I think you are saying that you want to move TO localhost, but I’m just trying to be sure.

    OR, are you asking about setting up a fresh multisite network on localhost?

    Those are all different questions, so it makes sense to start with a clarification. ??

Viewing 1 replies (of 1 total)
  • The topic ‘How to setup multisite from live server to localhost?’ is closed to new replies.