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
- 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
- Add a Custom Permalink option in the Permalink Admin Screen?
- Social sharing post’s shortlink instead of permalink
- Mixed unrelated taxonomy in permalink
- Getting a 404 when trying to load /wp-admin/plugin-install.php
- Show a special message for private page?
- What causes an Unexpected HTTP Error within install plugins?
- Custom Post Type Plugin not loading category template and loading 404 instead
- 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
- How to change custom post type pemalink Hierarcy
- 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
- Change permalinks of custom post type ‘question’ as post id or any random number once
- 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
- 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
- URL parameters causing 404 on home page, but nowhere else
- Using arbitrary paths in page urls
- Custom Permalink Plugin and Current Page/Ancestor in Menus
- plugin links not working [closed]
- Plugin generated taxonomies’ permalinks with custom placeholders
- Some one is trying to hack my website, Need guidance [closed]
- rewrite_rules() not applying rules on plugin activation only after permalinks menu is clicked
- 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
- Error in Fetching Custom Post Type parent Category URL (slug)
- Hidden permalink different from displayed permalink
- 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
- 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
- How to update all in-site redirect URLs to destination URLs at once
- post id or permalink auto-incrementing number and reset everyday
- All Post WordPress Page Error
- Custom author page for custom role
- Custom role not listed
- PageNavi redirects to 404 when used as archive page
- added code to permalink (URL)
- WordPress website dont load CSS, JS and images
- Is it possible to change plugin’s Admin Panel Url?
- Rogue splash page keeps popping up
- Plugin with AJAX on subdomains causes 404 in console
- How to disable wordpress page rewrite rule?
- How to programatically create a simple HTML page using the permalink of a WordPress post?
- Getting 404 page not found error while trying to access add new plugin / themes
- How to maintain WordPress permalink structure with custom content with URL parameters?
- Change post permalink to external URL from custom field
- 404 Page when emptying spam or deleting a plugin
- Does anyone have the Custom Post Permalinks plugin from John P. Bloch? [closed]
- How to remove site name (https://exp.com/) from WORDPRESS site source links or file load url
- WordPress Plugin and other pages not opening
- Plugin Icon does not work correctly
- /wp-admin/plugins.php takes ages to load, and then 404s
- Getting 400 Error in wordpress website
- Changing the “OT Process” Plugin’s Default Slug of /process/