Since ‘submission‘ is a child page of ‘events‘, the rewrite rule should include the parent path
add_rewrite_rule('events/([^/]*)/submission/?', 'index.php?pagename=events/submission&epl=$matches[1]', 'top');
Related Posts:
- Rewrite rules and query for virtual page
- add_rewrite_rule query_var not being set
- add_rewrite_rule permalinks break in WordPress 4.5
- Rewrite Rule for Post Meta
- Custom Fields Query Vars and Rewrite not working
- Last query_var not working with rewritten URL
- How to use endpoint, but remove/rewrite endpoint base?
- Passing variables in the permalink structure on a custom post type
- 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
- add_rewrite_rule not producing anything in $_GET
- Flush_rewrite_rules not working when settings updated
- Prettified page URL w/ query var redirects to prettified page URL w/o query var
- Rewrite Rule for Custom Page with Query Vars in URL
- Making extra parameters optional
- flush_rewrite_rules() cancels the effect of add_rewrite_rule()
- 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
- add_rewrite_rule() not working
- WordPress rewrite rules for state and city
- add_rewrite_rules prefix everything
- Can someone explain the function of the third parameter of “add_rewrite_tag”
- get_query_var with add_rewrite_rule and add_filter(‘query_vars’) not working
- Can rewrites fallback if 404? Rewrite conflict issue
- Where do I USE add_rewrite_rule?
- add_rewrite_rule confusion
- add_rewrite_endpoint not working
- Uppercase to Lowercase in URL
- How to use rewrite rule or rewrite endpoint to switch languages?
- Rewrite rule to prettify two $_GET variables while in a new endpoint from a page
- Remove rewrite endpoint on deactivation?
- Do I need to flush rewrite rules when creating new user if using custom author rewrite rules?
- Custom query var rewriting with only variable
- Hooking “delete_option_rewrite_rules” for rewrite rule addition
- WordPress shows front page, when it should show 404 with pagination style urls
- add_rewrite_rule redirects if value = 1
- How to add rewrite rule for external php file
- Making extra parameters optional
- My add_rewrite_rule is returning a 404
- 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
- Rewrite without query parameter
- WordPress CPT slug and page slug conflicts
- Mod_rewritte – remove ?m=1 from url
- WooCommerce – Conditional for page created by rewrite_rule
- custom permalink for single post category
- Rewrite rules priority
- Rewrite rules ignored
- How do I turn off the blog and archives?
- Add_rewrite_rule doesn’t seem to work?
- Custom post types and custom variables — add_rewrite_tag() not working
- Grab last part of the url inside rule
- Leverage WP_Rewrite to pre-validate links / detect invalid links
- When request has multiple matching rewrite rules, and matched rule returns 404 – iterate to next rewrite rule
- “/” URLs without trailing slash shows 404
- How to allow WordPress to recognize a custom URL segment after a product URL and use a custom template?
- CPT – Nice url with add_rewrite_rule
- add_rewrite_rule not working for blog category page
- get_author_posts_url() doesn’t return the author URL, because of wrong author_structure
- add_rewrite_rule only works when flush first
- Homepage rewrite rule
- WordPress pass url to page template when page does not exist
- custom rewrite rules will not be added to wordpress rewrite_rules database
- rewrite rules problem with #comments-2345
- Overcoming a complex WordPress page rewrite rules request
- Why isn’t my rewrite rule for add_rewrite_rule not working as expected?
- WordPress matching URLs with trailing tildes code correction
- A part of regular expression in add_rewrite_rule function not working
- Prevent WordPress to remove query vars from url
- Own query vars are not displayed
- Complex rewrite rules with multiple variables, some the same
- Taxonomy Rewrite Problem
- how to use mutliple add_rewrite_rule?
- Pretty Filter URL
- Social sharing conflict with Rewrite rules
- Rewire Rules Front Page
- WordPress URL rewrite after changing web from Joomla
- Connect custom rewrite rules and query variables to wordpress navigation
- add_rewrite_rule doesn’t work for me
- Rewritten URL not loading WordPress environment
- Changing default slug of post to the post id
- How bad is flush_rules() on init hook?
- Rewriting base name Taxonomy same Post Type
- Where to hook to bypass instantiating WP_Query?
- How to Add Rewrite Ruled Argument Into Permalink Properly
- Overwrite WP’s default search rule to redirect to my own template
- add_rewrite_rule() driving me crazy, rewrite not working when analyzer says it should
- Redirect to a file in a WordPress theme directory
- What is the `rewrite_rules` option the options table in the WordPress database?
- Direct domain alias to a specific WordPress page without the page in the URL
- rewriteRules WP6
- Rewrite rule for nested URL does end in 404
- How does WordPress manage to differentiate between post and page URLs without a distinct base, and how can I replicate this functionality?