[resolved] Moving a directory site to root (4 posts)

  1. Siyak
    Posted 2 years ago #

    I have a multisite located on domain.com/dev. I want to move it to the root site domain.com. I used duplicator and it worked, the issue is when I navigate anywhere from domain.com I get redirected to the /dev subsite.

    When I checked wp-config.php I noticed that PATH_CURRENT_SITE has /dev/ and I changed it to / but then the site gives me "error connecting to database"

    Please help.

  2. Read http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_Multisite

    You can't just edit the config, you have to do the DB too.

  3. Siyak
    Posted 2 years ago #

    Thanks Mika.

  4. Siyak
    Posted 2 years ago #

    I exported the database and used Sublime Text to perform a search and replace, imported it back and it worked. Thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic