• I’ve scoured the web for this, but haven’t quite found a solution that seems like it would work right.

    Basically, what I’m looking for is a plugin or a method that would allow me the ability to change or refresh permalinks from the Network Admin panel for all sites at once.

    I am currently working within a multisite installation that has around 120 sites attached to it, there are custom posts included and it seems that if any changes are made within the functions page in relation to them, the permalinks are subject to break. I’m not sure if there’s a way around this or not. It’s something that would be easily fixed with one or two sites by changing the permalinks then changing them back, but with so many sites it makes the job kind of large.

    We’ve not yet launched the site, and I foresee us having to do the same thing after we launch it. So my question, first and foremost is, is there a way to create a master permalink path for all websites, so if it does need to be changed it can at the Network Admin level in one fell swoop.

    If not, is there a way to prevent the permalinks from breaking when alterations are made?

Viewing 1 replies (of 1 total)
  • Preventing permalinks from breaking may not be a solution. As you have discovered, adding a new post type may require a refresh/flush of the rewrite rules so locking them will be no help to you.

    Now if the alterations you are making to the permalinks are via a plugin or theme activation you can add a refresh to the activation/deactivation hooks of each plugin/theme.

    I wonder if you can call flush_rewrite_rules when you click the “Upgrade Network” button by hooking the wpmu_upgrade_site action? That button will cycle through all blogs and you can get it to update permalink_structure option as it does so, but I do not know if you can add flush_rewrite_rules to the same hook. Worth a try. It might already flush rewrites as it does its things.

Viewing 1 replies (of 1 total)
  • The topic ‘Changing permalinks across all sites’ is closed to new replies.