My first guess is that your htaccess file is being changed. I’d look at that file content and time stamp after the 404 happens. (Although it is possible to make changes to a file without changing the file’s time stamp – I’ve seen it done on a hacked site.)
Redoing the permalink settings rewrites the htaccess file, which is why I suggest looking there.
You might also do a search of all plugin’s code for ‘htaccess’ to see if there is code that is directly changing that file. There might also be a filter that can be called to reset permalinks but can’t find it right now.
You might also consider that perhaps your site has some malware. There are many googles/bings/ducks on how to figure that out.
Related Posts:
- Reoccurring 404 Errors on all subpages
- homepage olderposts link showing page not found
- How to call a plugin function from index.php
- How to eliminate weird 404 errors in wp-admin?
- Rewriting every url
- Does WordPress contain “default” anti-SQL injection code that responds with a 404 error?
- How can I force a “404 Not Found” error
- Change post permalink to external URL from custom field
- Prevent page slug from interfering with custom post type archive permalink?
- Passing URL parameters to WordPress pages and pretty url
- Change Permalinks Structure to a Sequential Number for Each Post?
- Some plugins adding full server path after url (with custom wp-content folder)
- Why am I sometimes getting a 404 error when I try to update a page with Elementor?
- Publish Post After Click On A Link
- How to prefix `attachment` permalinks with `attachment`?
- Alter post slug by a filter that is fired just after a post is created
- How to get the custom page get_permalink?
- How to set “with_front’=>false” to a plugin-generated cpt?
- WP get_permalink Return Wrong URL
- How to add nofollow on all external links without plugin?
- Custom url structure for custom template
- How do I customize my WordPress shortlink structure in link-template.php without a plugin?
- Add a Custom Permalink option in the Permalink Admin Screen?
- Social sharing post’s shortlink instead of permalink
- How to get the permalink of a page when loading my plugin
- Mixed unrelated taxonomy in permalink
- Getting a 404 when trying to load /wp-admin/plugin-install.php
- Show a special message for private page?
- Rewrite url without flushing the database?
- What causes an Unexpected HTTP Error within install plugins?
- Error 404 using wpml plugin
- Custom Post Type Plugin not loading category template and loading 404 instead
- An issue with SEO Ultimate
- How do I add a custom sub menu menu under Woo-commerce marketing?
- Changed permalink structure. Need help with redirecting old posts
- Change permalink structure hidden button edit
- Load custom PHP on a custom URL via a plugin
- How to change custom post type pemalink Hierarcy
- resetting permalinks after changing page names
- Plugin appends ugly URL string to index
- How to make a proper custom post type link
- Pagination Broken on Static Pages but Works on Blog Articles
- AddToAny shortcode in the loop
- ‘No Results Found’ on single post for custom post type
- Outbound link autometic converted into linkdirect , and not opening
- Is it possible to use multiple post_name, post_title and post_content?
- Modifying Author Link to add Author Meta in URL
- SEO Friendly URL on dynamic product page produced via shortcode
- Change permalinks of custom post type ‘question’ as post id or any random number once
- Remove /product/ from url. I want only category name then product name
- get 404 when accessing wp-admin/plugin-install.php
- Finding which plugin uses cloudflare (due to GDPR)
- create link/button to purge cloudflare cache on post
- Redirecting thousands of posts that currently have no category in their permalink when changing permalink structure to include category
- Customize permalink wordpress category id
- Permalinks stopped working after migration with WP all-in-one migration plugin
- How to remove custom post type and add category and post name
- Perform internal redirect in WordPress?
- URL parameters causing 404 on home page, but nowhere else
- Using arbitrary paths in page urls
- “Custom Post Type Permalinks” plugin URL strcuture
- Filtering get_permalink in Jetpack / ShareDaddy
- Custom Permalink Plugin and Current Page/Ancestor in Menus
- plugin links not working [closed]
- Plugin generated taxonomies’ permalinks with custom placeholders
- How to get the permanent link in a plugin?
- Some one is trying to hack my website, Need guidance [closed]
- This WordPress plugin isn’t creating links correctly
- rewrite_rules() not applying rules on plugin activation only after permalinks menu is clicked
- flush_rewrite_rules() not working with update_option_{$option}
- My custom php file keeps 404’ing in WordPress when I call it. What am I missing?
- Add_rewrite_endpoint doesn’t work with post name permalink structure
- wp-admin send 404 error
- Plugin not working & permalink erorr after upgrade to php 7x on Nginx
- Disable plugin If slug contains specific word
- How do I create a custom permalink structure for a page template
- Which filter/action should I use to serve content for “virtual” files
- Huge number of 404 pages getting spawned
- I want to filter my products with attributes [closed]
- How to embed a new string in url?
- Make get_permalink() work outside the Loop using filters
- Pagination/404 I believe wp is getting a page ahead of itself
- Plugin for TinyMCE to create reference to other posts
- Permalinks and pagination are not working in WordPress with WP e-Commerce plugin
- help intercepting save_post through plugin
- TranslatePress | secondary language category/sub-category not working correctly “`/%category%/%postname%/“`
- Why the internal link get converted into a comment?
- Oops! That page can’t be found
- How to stop Facebook mobile in-app browser cache on WordPress
- Error in Fetching Custom Post Type parent Category URL (slug)
- Hidden permalink different from displayed permalink
- WordPress Frontend Page using Plugin
- How to add a prefix to a WordPress post preview url?
- Child theme modifications not showing up
- Rewrite/Change custom taxonomy slug
- Create new page in wordpress plugin which doesn’t exist
- one url for all pages
- How to detect 404 url and make this link underline or change background color?
- Getting Fatal error: Uncaught Error: Call to undefined function plugin_dir_path() when linking to another file within my wordpress plugin
- Is it possible to have permalinks to sub-domain pages and to root pages within one single WP instance?