You would probably need to do this programmatically, for example add a PHP file to your /wp-content/mu-plugins/
folder with this:
<?php
add_action('init', 'modify_all_permalink_structures');
function modify_all_permalink_structures();
if (isset($_GET['modify_all_permalinks')) {
$structure="/%category%/%postname%/";
$sites = get_sites();
foreach ( $sites as $site ) {
switch_to_blog( $site->blog_id );
global $wp_rewrite;
$wp_rewrite->set_permalink_structure($structure);
$wp_rewrite->flush_rules();
}
restore_current_blog();
}
}
Then access yoursite.com/?modify_all_permalinks
to trigger it.
Recommend you do a full site backup first in case this is somehow insufficient. Remove the file when it has done it’s job.
Related Posts:
- How to eliminate permalink prefix in WordPress Multisite
- How to get blog id from permalink?
- Why I can’t change the permalink of this page?
- Multisite Network: How to change permalink structure programmatically on new blogs
- Why wordpress multisite root site showing blog prefix by force?
- Create unique alphanumeric ID on wp_insert_post
- WordPress Pages Redirecting to Root with WordPress Multisite (Sub-Directory)
- Stop Images Linking to Themselves?
- Is it possible to install WordPress Multisite on a subdomain with subdirectories?
- Visiting posts results in 404 errors after host migration
- /%post_name%/ or /%postname%/ in Permalinks?
- flush_rewrite_rules on MultiSite
- WP Multisite Subdirectory Custom Permalinks 404
- 404 on wordpress multisite Permalink pretty URLs
- WordPress Multisite ABSPATH and get_home_path() to check for htaccess or web.config file
- In a multisite, how can I get posts from one site and display their permalinks in another site?
- Disable “similar permalink” redirect [duplicate]
- Parent/Child Relationships with Multisites?
- How to use ‘blogs.dir’ as media upload instead of ‘uploads’ directory in WordPress multisite setup
- Add “/blog/” as base for all blog post URL
- Link to a custom page without a permalink?
- Pages with parent pages giving 404 errors
- Getting 400 Bad request Error when trying to open posts after updating to wordpress 5.0
- How to experiment with permalink structure on a select number of posts
- How to change permalink for pages in WordPress?
- Problem with get_permalink, to get page content
- Why does page for hierarchical taxonomy parent term go 404?
- Rename Custom Post Slug using taxonomy
- Change permalink structure with post id
- Link works although page was moved to another location
- How to allow different authors to use same post slug?
- Custom permalink gives 404 error only in some pages
- Can I link to content dynamically from a page to a new page?
- Question About Permalink in wordpress
- Logging in to installation in subdirectory renders broken dashboard (no CSS, broken links)
- while changing permalink, page redirected you too many times
- Woocommerce product page 404 not found
- WordPress – Permalink custom Structure – 404
- I noticed only on 2 pages I keep getting permalimks changed with added -2 or -3?
- How can I have a page’s permalink include my custom post type’s slug?
- Every sub page shows Error 404, i have check permalink but still same issues
- Remove Permalink of certain posts
- Bulk update set of URLs via SQL
- Added a prefix in URL permalink structure but the old structure still working!
- WordPress and Woocommerce Chinese Permalink
- WordPress project redirecting to a blank index.php when i use custom templates
- How to display category and subcategory in wordpress permalink structure?
- Custom permalink for one category
- How to have permalink like domain.com/%category%/%postname%/
- redirect any category in URL to the ID and post-name only – hundreds of pages affected
- Permalink Increments Not Updating/Removing
- Why aren’t my posts being saved or published?
- Category Base permalinks
- Updates all internal links on permalink update
- permalink as content
- Update siteurl and home in multisite subsites to https
- Permalinks Question: Adding a prefix ONLY in front of all posts with the ‘video’ post format
- How to get a clean pagination link without variable
- Propper way to set anchor and url param
- Changing category base breaks permalinks
- Create new URL structure for custom post types
- how to have same rewrite rules for 2 different post type?
- append current user-id to all internal permalinks
- wordpress admin panel loop on nginx
- Added .html to Woocommerce permalink but pagination don’t work!
- Permalink structure /page/page/cpt-post gives 404 with pagination
- WordPress and NGINX – permalinks are not working with ending slash
- Can’t access new WP install on subdirectory
- Changing permalink structure for Posts
- Prevent 301 when a trailing slash added
- Subpages getting a 404 error after changing Parent page URL
- WordPress Permalinks
- How to search for images and get it’s link?
- How to find a page in admin based on it’s permalink
- Problem with permalinks
- Why I had to re-save permalink setting after moving my WordPress site to another hosting provider?
- Automatisation permalinks for each making of new page
- Allowing slash in slug/permalinks
- Find internal links to post
- rebuilding/ rewriting a url to make it SEO friendly
- Very strange behaviour related to htaccess and custom posts and custom posts substrings (BUG?)
- Permalink change during save of post
- Remove link function from oembed image or video
- Retain Post title keywords in URL even if user changes post title or any other way to achieve SEO friendly permalink?
- How do WordPress permalinks work?
- Custom Permlinks work, regular page permalinks don’t
- How to redirect from old standard wordpress permalink structure to new custom one
- How to change the URL using rewrite rule in wordpress
- Permalink of post redirect to uncategorized category
- Category URL to use same string as Post URL Permalink
- What permastrusture tags are generated out of the box right after creating custom post types and taxonomies?
- Getting current page URL when default permalink is set
- No Ones Been Able to Override my WordPress Rewrite Rule Issue!
- My permalinks for all pages and posts now include old page titles as parents/categories
- Remove index.php from URL (WP installed in subdirectory)
- WordPress All pages but home simply read “hello”
- Do shortcodes in title before permalink is generated
- Page returns 404 for specific permalink
- Rewrite posts url as they’re all children of a page
- Which action hook to update custom field at network/site-info.php in multisite on update site info