• After updating our WP multisite https://blogs.evergreen.edu/ from 3.0.1 to 3.0.4 subsites get 404 errors when accessing post and category pages (front page and pages work fine). This forum post identified a solution (resave permalink settings) however we have over 1100 sites where this needs to happen. I’ve looked for plugins that will flush the rewrite rules network-wide but the closest I’ve found is YD Network-wide Options that will flush rewrite rules on new blogs (not existing ones). Any ideas?

Viewing 3 replies - 31 through 33 (of 33 total)
  • I’ve been experiencing the same bug, and found that dscottS3s script did not solve my problem..

    I’m not sure if it is a correct way to do it, but I added the line
    $wp_rewrite->init();
    between switch_to_blog and $wp_rewrite->flush_rules() and it seems to do the trick for me. I’ve been checking some of the sites, and they all seem to work.. ??

    where have you added this? folder & file?

    I still have the problem ??

    I’ve added the file to my dropbox (and bit.ly’d it to keep track of downloads), you can find it here: https://bitly.com/mUT8Pr

    BEFORE YOU RUN AND INSTALL: Backup your database!! And this is not just something I’m saying. I have only tested this on my own database, so it might just as well corrupt your whole site, but for me it works perfectly, so I think it is okay ??

    The plugin will create a menu option in “Network Admin” under “Settings”, where you can manually trig the update of all sites.

    If you’d like to run it every time someone logs on to the dashboard, follow instructions in the file (really simple). Note: this might increase your log on time seriously, so I’d recommend only running it on-demand.

Viewing 3 replies - 31 through 33 (of 33 total)
  • The topic ‘404 errors after update. Need to flush rewrite rules network-wide’ is closed to new replies.