It sounds like you misunderstand how to add rewrite rules as your structure is relatively common and should not require flushing the rules on every page load.
The impact depends on your set of rewrite rules, and the codex is somewhat outdated and I don’t think it is as bad as it used to be several versions ago, but still it is updating an option with a possibility that it will be written to the DB. Your site might actually survive a write to the DB on every page load (some stats plugins used to do it) but it is totally not scalable and your site will crush once it get traffic.
Related Posts:
- Do I need to flush rewrite rules when creating new user if using custom author rewrite rules?
- When should add_rewrite_tag() be used?
- Why does everybody hook add_rewrite_rule on init
- add_rewrite_rule() vs $wp_rewrite->rules vs ‘rewrite_rules_array’?
- How to check if a rewrite rule exists
- Querystring parameter getting lost in rewrite rule
- Custom post types and custom variables — add_rewrite_tag() question
- add_rewrite_rule not producing anything in $_GET
- Flush_rewrite_rules not working when settings updated
- WordPress Custom URL Rewrites
- Case-insensitive add_rewrite_rules in WordPress functions
- Does add_rewrite_rule(..) only accept “index.php” as redirect target?
- Cyrillic characters in rewrite rules cause 404 Not Found errors
- Custom Endpoint Gives 404 Header
- Clean URLs for custom $_GET variables
- Prettified page URL w/ query var redirects to prettified page URL w/o query var
- Making extra parameters optional
- flush_rewrite_rules() cancels the effect of add_rewrite_rule()
- why is are these rewrite_tags and rules not working?
- Separate posts by chapter per rewrite
- Redirect taxonomy to custom template to list terms in taxonomy
- How to change the matches in add_rewrite_rule
- Using add_rewrite_rule() to redirect to Front Page
- resolve /author/ to a page or archive (of all authors) template
- Multiple values in a rewrite rule, is it possible?
- What add_rewrite_tag()’s RegEx matches against?
- add_rewrite_rule() not working
- add_feed and flush_rewrite_rules
- Rewrite rules and query for virtual page
- add_rewrite_rule parameter is not received by the page
- add_rewrite_rules prefix everything
- Can someone explain the function of the third parameter of “add_rewrite_tag”
- Best action to call add_rewrite_rule
- get_query_var with add_rewrite_rule and add_filter(‘query_vars’) not working
- Can rewrites fallback if 404? Rewrite conflict issue
- Reading Settings -> Front Page displays “Static Page” being reset
- add_rewrite_rule query_var not being set
- why does add_rewrite_rule refresh and loose url variables
- Where do I USE add_rewrite_rule?
- add_rewrite_rule confusion
- add_rewrite_rule isnt working, not getting added to rules array, why?
- add_rewrite_endpoint not working
- Associate the “add_rewrite_endpoint” and “$_GET”
- Custom Rewrite rule to match anything not already matched by WordPress
- Uppercase to Lowercase in URL
- How to use rewrite rule or rewrite endpoint to switch languages?
- Remove rewrite endpoint on deactivation?
- Add Rewrite Endpoint to CPT Archive
- Optional all capture groups in rewrite rule
- Rewrite rule : custom post type with 2 numeric variiables
- Plugins rewrite rules the right way
- Does it still make sense using json endpoint ep_mask now that there’s the new rest api? [closed]
- Simple page URL rewrite with add_rewrite_rule()
- Hooking “delete_option_rewrite_rules” for rewrite rule addition
- Optimal code for two add_rewrite_rule’s
- Custom URL rewrites work, but break my permalinks
- WordPress shows front page, when it should show 404 with pagination style urls
- add_rewrite_rule – Additional subpages for author pages
- Rewrite rule problem
- How do I flush rewrite rules
- add_rewrite_rule redirects if value = 1
- Pass query vars to front page
- rewrite url in wordpress
- add_rewrite_rule permalinks break in WordPress 4.5
- How to add rewrite rule for external php file
- Making extra parameters optional
- My add_rewrite_rule is returning a 404
- Rewrite rule for path of favicon.ico ( Add_rewrite_rule function possible ? )
- wordpress add_rewrite_rule not working
- FLUSH_REWRITE_RULES – after or before REGISTER_POST_TYPE?
- Using get_query_var() from a plugin
- How to flush rewrite rules on the activation of any plugin
- force_ssl_admin() causing issues with preview links
- $wp_rewrite->rules is always NULL
- Rewrite without query parameter
- WordPress CPT slug and page slug conflicts
- Mod_rewritte – remove ?m=1 from url
- Rewrite Rules problem when rule includes homepage slug
- help with custom rewrite rules
- Order of rewrite rules when calling add_rewrite_rule
- Rewrite Rule for Post Meta
- WooCommerce – Conditional for page created by rewrite_rule
- add_rewrite_rule() not stored (I think)
- custom permalink for single post category
- WordPress add_rewrite_rule second argument not working
- flush_rewrite_rules() not working on updating Settings API
- WordPress rewrite does not work for some reason
- Rewrite rules priority
- Rewrite rules for short URL
- Rewrite rules ignored
- How do I turn off the blog and archives?
- Adding a custom rewrite rule for gallery/categories page
- add_rewrite_rule issues
- Add_rewrite_rule doesn’t seem to work?
- Grab last part of the url inside rule
- add_rewrite_rule to search
- Why isn’t my rewrite rule working when there is no second parameter?
- Rewrite rules applied differently after upgrade
- Leverage WP_Rewrite to pre-validate links / detect invalid links
- How to do make mysite.com/post-name/sub-post?