What happening is that WP is searching for a category rather your post. So the category rewrites come before post rewrites and that is making the WP confused.
For more info about the rewrites, I can point you to an excellent article here
Related Posts:
- Edit page slug after save, cause 404 by linked pages
- 404 error on published page with specific permalink
- Changing permalinks gives me 404 errors on nginx
- WordPress slug issue with non-latin characters
- Setting 404 page in Nginx
- Stop WordPress from reserving slugs for media items?
- Including category-base in a post permalink results in 404
- Change slug on post creation
- WordPress thinks my custom route is a 404
- Post type child of another post type
- How to prevent apostrophes and quotes from appearing in permalinks?
- Is It A Good Idea To Change Author Slug (user_nicename field) Directly In MySQL DB?
- When creating a WordPress page, a “-2” suffix is added to new pages’ permalinks
- How to i18n slugs for templates?
- Remove parent slug for child pages
- Replace WordPress %postname% suffix with %postid%?
- Limiting the number of words or characters in the slug/permalink
- Remove Slug from Custom Post Type results in 404
- How to edit the slug/permalink in Gutenberg?
- Make attachment pages require a base url
- Permalinks Structure and 404 Question
- Attachment page 404 not found when image is attached to post
- Custom Permalink with Dynamic Taxonomy for Custom Post Type – Works, but breaks other permalinks
- Changes to permalink structure results in 404 error for all pages other than home
- Permalinks broken regularly
- 404 Page Not Found for Only One Post
- Filter string like a slug
- Change author slug and functionality
- Clean install – Changing permalinks in twentyeleven give 404
- Problems redirecting to “pretty” permalinks (wordpress in Subdirectory)
- How can I add a page’s ID to its permalink using WP_Rewrite?
- Permalink change made author archive vanished
- WordPress 404 in development area
- Does rename of page slugs create 301 redirects from old slug to new (same as for posts)?
- Custom Permalink
- page nested 3 levels deep shows 404
- Nginx Rewrite Rule:: index.html added to every permalink
- Moving local wordpress page to a real server subdomain broke my permalinks?
- Non latin post slug truncate
- Share same Slug for a Custom Post Type and 2 Taxonomies
- WordPress post-name permalink redirects to site.com
- Page preview is shown, updating page gives 404 error
- get_permalink returning site home url instead of the url of slug being passed
- Correct permalinks and 404-error
- What would cause a theme to add extra characters to blog post links?
- Getting 404 when Access post which name start with Digit
- Permalinks 404 error with HTTPS host
- WordPress can generate numeric permalinks, which then 404
- Custom permalink structure gives 404
- Pre-populate Slug / Permalink with URL
- Post preview gives 404 when permalinks are purely date based
- WordPress suddenly changed all links to example.com/example.com/
- Permalinks on post is working, on pages 404 error
- Visiting posts results in 404 errors after host migration
- Suddenly new posts have the default permalink instead of the post name
- How to Custom Edit Post Title & Permalink Slug?
- 404 permalink errors on Pages only
- Page redirect to 404 when set Permalink = “Post Name”
- Fix 404 error after changing permalink structure
- WordPress Permalinks 404 bug with “next” button
- Changing permalink settings causes 404
- how to set up wp in folder within static website?
- permalink and add_rewrite_rule – error 404
- using wp_redirect to redirect to a permalink
- old permalinks not found
- WP-e-commerce (getshopped) – Annoying permalink issue [closed]
- Gutenberg Editor: dynamically edit slug field based on ACF field
- How do I structure my permalinks in WordPress?
- New posts link to old posts (random)
- How to prevent wordpress from lowering Capitalized letters
- MySQL-inserted custom taxonomy term lead to 404, flush rewrites doesn’t help
- WordPress /page/2 gives 404 when custom permalinks is set to %category%%postname%
- Code snippet to add filter pre_post_link to change Media URL (post_type attachment permalink/slug)
- How do I use the same Tag slug for different Tags?
- Giving specific category posts its own permalink structure returns 404
- How to create a standard WP Page that has the same url as an archive
- 404 page not found – Yet open admin page it works
- How to allow different authors to use same post slug?
- Woocommerce product page 404 not found
- Every sub page shows Error 404, i have check permalink but still same issues
- Allowing slash in slug/permalinks
- Author permalink
- wp_dropdown_categories links 404
- Force/Limit the post/page slug to accept only url friendly characters
- LetsEncrypt WordPress on the Raspberry Pi – Nice url’s give 404 with https, http works
- Permalink Rewrite with Archive – Archive gets 404
- Uppercase vs. Lowercase page slugs
- Accidentally changed the permalink structure
- Keep wordpress from modifying my permalinks
- Is there a way to remove the option to modify the Slug in post.php
- Folder Name and Category Name WordPress
- Possible to hide parts of the slug from get_template_directory_uri and bloginfo(‘template_directory’)
- Only homepage working correctly, 404 error on everything else
- How to update permalink on the fly?
- WordPress 3.1 problem, getting 404
- Display a custom slug in URL depending on user variable
- Parent pages not found with pretty permalinks
- Plugins, themes and other dashboard links including permalinks giving 404 error
- WordPress Permalinks 404 Not Found
- WordPress not remembering old slugs for pages