Based on the info in the comments, here’s my preliminary answer, hopefully helping to debug the issue rather than a fix as I can’t see enough info for that — not the OP’s fault, rewrite debugging is just a pain.
The rewrite rule is obviously passing something to WP but WP isn’t happy with it.
What I’d do is add some debugging code to your theme’s 404.php that can show you the URL called and also the URL that WP is failing to parse. That at least will let you see whether your rewrite rule is doing what you expect.
Two other points though:
1 – If you don’t move your own htaccess code outside WP’s BEGIN and END then your changes will be overwritten if ever your site performs a hard save of its rewrites.
2 – It might be seen as better practice to code rewrite rules for your old URL structure within WP as a plugin instead of rewriting in htaccess.
Related Posts:
- 301 Redirects for Changed Permalink Structure & Category Base
- How do I turn off 301 redirecting posts (not canonical)?
- Passing variables through permalink structure
- htaccess or redirect to cloak portion of a link?
- Auto 301 to full post permalink? (using /posts/%post_id%/%postname%)
- Using WP rather than .htaccess to redirect pages/posts
- .htaccess – Redirect duplicated post ended in ‘-number/’ to the same url without the -number/
- WordPress redirection problem after moving to a new server?
- If I change permalink structures, can I use htaccess to permanantly redirect links?
- Redirect parent taxonomy to it’s child
- Need Help Correct Regular Expression Redirect Code
- Custom Permalink
- Redirect a Blogger Page URL to wordpress
- Redirecting all posts after changing URL structure with htaccess
- Redirect all posts permalinks from “.html” to “/”
- WordPress 4.4 old permalink redirect
- Htaccess https 301 problem
- How to use different domains for different blogs hosted in the same host in subdomains with .htaccess
- What causes /pages/ to appear in URI, and how to remove it?
- Some Pemalink problems, probably caused by wrong .htaccess configuration?
- Test site pages go to main site
- Comment author url link is wrong? How to change from authors/ to author/
- change WordPress permalinks and redirect new urls 301
- Custom permalink structure with %postname% in front of domain name
- Configuring Home Page Address
- Can’t access WordPress site in subfolder possibly because of .htaccess redirect from root installation?
- Removed and Reinstalled WordPress, Redirect Broken now
- redirect old pages by .htaccess
- Why are all pages redirecting to homepage when using custom permalinks?
- .htaccess regex for redirect subdomain to root domain & redirect old permalinks
- 404 posts error after 301 redirection of changed category / tag base
- 301 Redirect posts to newly added categories
- How does WordPress handle permalinks?
- Setting up WordPress with Custom Permalinks and no .htaccess File?
- How can I force WordPress to redirect to canonical permalinks?
- + Character in permalink
- WordPress on a subdirectory of Laravel – WordPress pretty permalinks inner page shows laravel
- Permalink redirection from ‘Day and name’ to ‘Post name’
- Remove subfolders from URL
- Nicest way to 301 Redirect traffic when changing permalink settings
- Changing pemalink structure to /%post_id%/%postname%/
- Redirect short-form URL to long-form URL (post_id to post_id + post_name)
- removing index.php IIS 7.5 webconfig
- wordpress permalinks tweeks
- Stop redirecting to posts not in a category / duplicate slugs
- Get canonical link
- Problems redirecting to “pretty” permalinks (wordpress in Subdirectory)
- .htaccess file missing from WordPress install directory
- Changes to .htaccess not updating the file (old rules still take effect)
- Permalinks not working with Vagrant
- How to redirect to correct pages after permalink structure change
- Only plain permalinks working
- Redirects after permalink change
- Page preview is shown, updating page gives 404 error
- How to 301 redirect from one url to another properly
- How to change old permalink?
- Empty permalinks settings in .htaccess
- How to rewrite a URL to another rewritten URL without changing the address?
- WordPress 3.1 .htaccess contents keep dissappearing?
- Custom permalinks in WordPress
- Freeze child page URLs so parent permalink changes don’t give 404s?
- WordPress permalink, stop redirection
- How can I make internal anchor links work with WordPress’s permalinks?
- Changing WordPress routing to load the same page for different URLs
- Redirect From Url To Url
- I’ve removed my /author/ slug but it clashes with new and existing pages. Any fixes?
- After cloning WP do a subdirectory, I can’t access it
- Arabic permalink redirect to home page
- WordPress Page Not Found if Permalink Settings is Postname
- Conditional Permalink based on category?
- Problems with permalinks (.htaccess not working)
- old permalinks not found
- What would cause a 500 Server Error with permalinks turned OFF?
- Change author permalink using htaccess?
- Change url of page according to my requirements in wordpress
- How to redirect old permalinks from https://exmaple.com/category/post_id to https://exmaple.com/category/post_id.html
- corrupted URLs – can’t leave starting page
- Cannot publish posts or pages when I change permalink structure
- 301 redirects after changing permalinks
- How to experiment with permalink structure on a select number of posts
- redirect any category in URL to the ID and post-name only – hundreds of pages affected
- wordpress admin panel loop on nginx
- Very strange behaviour related to htaccess and custom posts and custom posts substrings (BUG?)
- WordPress All pages but home simply read “hello”
- Post redirected to page with same name but DIFFERENT permalink
- Changed Permalinks settings, how do I redirect posts on Nginx?
- Post permalinks go to the home page
- WordPress pages break with custom permalink settings (theme directory not output)
- redirect 301 with special character like WIX site “#!”
- How to rewrite a folder in WordPress?
- LetsEncrypt WordPress on the Raspberry Pi – Nice url’s give 404 with https, http works
- On IIS, stop WordPress from resaving my web.config file when I enter the Permalinks config page
- changing permalink gives 404 error for old links
- Pretty permalinks (again)
- Fresh wordpress installation in sub-directory not accessible
- Folder Name and Category Name WordPress
- .htaccess not working in WordPress
- Redirecting From An Old Permalink Structure
- htaccess strip url
- How to use ‘blogs.dir’ as media upload instead of ‘uploads’ directory in WordPress multisite setup