The canonical code within WordPress should actually already redirect those old posts to the new posts automatically. Have you tested that?
Related Posts:
- Custom permalink structure leads to be 404 on pagination
- How to get permalinks with category base working with sub-categories
- Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/
- Archive pagination causing 404 with permalinks structure
- New categories are now going to 404s
- WordPress subcategories return 404 in custom template
- Redirect category to url with /category
- Changing permalink from /postname/ to category/postname/
- Same base for category and post
- Sub Categories Keep Redirecting to Pages With Same Slugs
- Redirect single article permalink to paginated category page
- Category url generate 404 error
- Custom Permalink with child categories creating 404
- Pagination breaks on child-categories, works fine on parent-category
- Subcategory Page 404ing
- Custom permalink /%category%/%postname%/ produces 404 on each post
- WordPress Category url redirects to subdomain
- Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/
- htaccess redirect for all categories converted to tags now showing 404
- Remove parent category from permalink? Basically only have the child category?
- Category archive by year with permalink support /category/YYYY
- Best Way to Redirect Category to Page and Hide Category
- Add a URL prefix to permalinks of one category of posts only
- Filtering categories in the permalink structure
- 404 Error On Category and Tags Pages
- Allow duplicate permalink slugs for posts in different categories
- Force WordPress to Show Pages Instead of Category
- How do I use the same post slug for different Categories?
- How to remove category from wordpress url?
- Multiple post categories – single permalink
- How to create a custom url for a category [closed]
- Preventing index.php?category_name=something from redirecting
- Add forward slash on categories url (serve one version of a url)
- How to change the category in URL for posts in multiple categories?
- How to exclude uncategorized from permalink structure /%category%/%postname%/
- Multisite blog converting categories to subdomains
- How to get the url to tag & category base set by the user?
- Optimal way to redirect home page to category archive?
- Redirecting specific category posts to subdomain
- 404 error on subcategory pages
- Categories’ hierarchy in URL
- Changing the category permalink structure
- How to: 301 Redirect /category/ to /customname/
- How to? Redirect /category/sci-fi/ to /category/scifi/?
- How to Include the Parent and Child Category in the Permalink if the Post is Added to Both
- Category links suddenly started giving 404 errors
- Best and Cleanest way to remove /category/ from category permalinks? [duplicate]
- Exclude subcategories from the url
- How to display only the parent category in the permalink
- Redirecting category link to first child post
- Root level category, tag, author and archive pages to work
- Categories and Tags returning 404 on the sidebar when using ugly permalinks
- Permalinks – Different structures for different categories?
- Plural Category Base Slug On Category Archive Page
- custom permalinks for category archive ( custom base and no parent slug )
- Redirect old permalinks with Month and name to Post name on new site
- WooCommerce change category url and product base
- Removing category base form links messes up the parent-child behavior
- Redirect category to first available child post
- Duplicate Category and Page URL loads Category instead of the Page
- Custom Category/Subcategory structure
- Remove Parent Category from Child Category URL
- Best way to programmatically link to multiple categories (union/intersection) [closed]
- Default category link for a custom category is a broken link
- Categories not working – 404 Not found error
- How to set up Author archives with sub category URL
- Allow dot in wordpress permalinks (only for categories)
- wordpress wp_list_categories
- How to get category URL with the slug?
- How to filter posts by format and category via url?
- How to Filter categories in the permalink structure
- Specifying multiple categories in URL (permalink)?
- Possible to make a subdirectory that loops through a single category?
- Should the actual /category/ directory be 404? Is that normal WP behaviour
- force category base – archive pages work WITH & WITHOUT category base slug in url?
- Custom Permalink
- How get permalink for the current category or tag?
- Add “page-a” slug to category link if user visit category link from “page-a”
- Changing the post date without causing 404 error
- One Specific Category To Permalink
- WordPress category page redirects in .htaccess not working
- Why do my categories redirect?
- Category being displayed without base parmalink
- wordpress sub-category ( lowercase letters + non-latin characters ) = 404
- Removing post category base giving Error 404
- Categories showing page not found
- How to disable default category linkbuilding?
- The default code for “posts_nav_link” on category.php isn’t working
- Read GET parameters in APACHE Mod Rewrite rules for WordPress categories in Posts
- Have different permalinks based on category
- Redirecting thousands of posts that currently have no category in their permalink when changing permalink structure to include category
- Show parent category in URL of subcategory archive page
- WP didn’t redirect to canonical category URL
- Mod_Rewrite to show only last subcategory in URL
- Permalinks: display just one kind of wp category in the posts url
- Multiple URL’s based on category for one post
- category permalinks
- Hide uncategorized when no category set
- Remove subcategory and category with some rules from permalink
- How to rewrite the post URL according to the category?