Font Page overrides rewrites

Are you sure your rewrite rules are actually being saved?

How are you calling this function to setup the rewrite rules? Action? What about flushing rewrite rules, are you flushing them anywhere in your project? Disable all of your plugins and test to make sure one isn’t flushing rewrite rules on every page load.

As you can see in this plugin i’m creating:
https://github.com/tripflex/wp-login-flow/blob/master/options.php

I have to call a function just to preserve the rewrite rules that normally get overwritten by poorly coded plugins, but that should give you an idea of how to setup rewrite rules.

You can also see I have lots of debug logging in there as this literally took me a full 2 days to get completely functional as rewrite rules can be tricky

Two major things that caused me problems:

  1. Poorly Coded Plugins (disable all other plugins for testing)
  2. WordPress Heartbeat (use func from code above to disable heartbeat for testing)

yes mods i know this should be in a comment but i am not able to comment so this was my only option to reply