Discovering various redirect sources on WordPress
Where redirect comes from?
Redundant but examine
Actually, there are SOME redirects initiated from The SEO Framework (TSF) as explained here: https://wordpress.org/support/topic/remove-per-page-redirect-option-if-using-redirect-manager/ The 301 redirect location: https://kb.theseoframework.com/kb/data-stored-in-your-database/ Read: https://wordpress.org/support/topic/get-url-of-the-page-when-using-the_seo_framework_rel_canonical_output/
Deactivate both “Canonical redirect” and “Old slug redirect”
_wp_old_slug
https://wptheming.com/2015/12/purge-old-slug-redirects/ https://stackoverflow.com/questions/32409265/remove-old-permalinks https://wpreset.com/remove-default-wordpress-rewrite-rules-permalinks/
https://permalinkmanager.pro/docs/plugin-settings/canonical-redirects/ https://www.intelliwolf.com/stop-wordpress-partial-match-redirection/
Debugging rewrite rules
While debugging rewrite rules, plugin like these could be very helpful:
Rewrite Rules Inspector with repo at Automattic/Rewrite-Rules-Inspector: WordPress plugin to inspect your rewrite rules.
ali može da se koristi i WP CLI preko wp rewrite list
komande