Forums

Restore Multisite sites after accidentally deleting wp-config.php HELP! (3 posts)

  1. DustinNay
    Member
    Posted 9 months ago #

    Is there any way to restore all my sites, plugins, etc. after accidentally deleting wp-config.php? My site was hacked and I found a whole bunch of code added to the config file, so I thought it would be easier to just delete it.

    After deleting the wp-config.php and uploading a new config file (and changing all my passwords just in case), I forgot to enable multisite. My website currently won't show up (says "too many redirect loops" in the browser).

    I'm guessing that because it was a multisite installation before (about 30 subdomains), maybe that's why it's not showing. I can still log in to the WP Admin just fine.

    Anyway: I just re-enabled multisite in the config file, BUT it didn't restore everything. It wants to create a new multisite, but I'm getting "Warning An existing WordPress network was detected."

    So, I want to restore the 30 subdomains (which were on multisite), and get everything back online.

    Is this a multisite issue (site being down)? and
    How do I get all 30~ of my sites back up?

    Thanks in advance! I'm not a developer, but I can usually work through things...

  2. dgilmour
    Member
    Posted 9 months ago #

    I'm no expert. but to me this sounds more like a problem with the .htaccess file. Redirecting is something that's more to do with Apache than WordPress config, too.

    In order to access your subsites you're reliant on the rewrite rules in there. Problems with it can mean you get to the main site OK, for which the rules aren't needed, but can't access the subsites.

    When you say you can log in to WP Admin I'm guessing that's to the main site, but not others?

    I'd look to see if anything's changed with your .htaccess file. Could you have deleted it, for example?

  3. Andrea_r
    team pirate
    Posted 9 months ago #

    Yes, just putting the lines back in your confgif ile will do it. THe sites are all still in the db.

    "Warning An existing WordPress network was detected."

    That's expected behavior.

    If you;re not seeing the network admin area, make sure you put in *all* the lines.

Reply

You must log in to post.

About this Topic