The reason you are getting a 404 is that the rewrite rule do not change the request URL as reported sin $_SERVER[REQUEST_URI]
variable of PHP, and wordpress parses that variable when deciding what content is request and since there is no such page /cdl-manual/arizona/ it displays a 404.
What you need is a wordpress rewrite rule to parse the url the way you want it, but I suggest you just go simple and create 50 sub pages one of each state. It can be a little annoying but probably as fast as writing and debugging code to do what you want and much more future prof when it comes to further per state customization.
Related Posts:
- Adding the username into a URL to redirect to a specific page
- convert it into short code & explan how? [closed]
- Enqueue Scripts / Styles when shortcode is present
- How to create custom URL routes?
- How do you create a “virtual” page in WordPress
- Need help with add_rewrite_rule
- Conditionally Loading JavaScript/CSS for Shortcodes
- What does extract( shortcode_atts( array( do?
- remove “index.php” from permalinks
- Custom pages with plugin
- How do I escape a ‘]’ in a short code?
- Pass boolean value in shortcode
- Show shortcode without executing it
- Shortcode always displaying at the top of the page
- Change the “page” slug in pagination
- Redirect function inside a Shortcode
- Understanding add_rewrite_rule
- How to create a shortcode with 1 parameter (atts)
- web.config conflict on IIS
- how to show the syntax of a shortcode
- Custom shortcode being executed when saving page in wp-admin
- Change appearance of shortcode text inside editor
- current_shortcode() – detect currently used shortcode
- shortcodes output before content [duplicate]
- WordPress plugin shortcode not working
- How to add stylesheets only to pages with specific shortcode?
- Custom rewrite rules for archive page and single post
- WordPress Rewrite Rules for Custom Post Type and Taxonomy
- Custom post type permalink endpoint
- Using get_option() in JavaScript
- Rewrite rules not working in WordPress
- Dynamic Endpoints
- Shortcode empty attribute
- How does a shortcode work?
- Shortcode outputs at the top of the_content
- the_excerpt and shortcodes
- Using wp_editor in shortcode
- Remove wpautop from shortcode content / remove whitespace in buffering
- Get current post id witout passing in shortcode
- How to add custom rewrite rule to .htaccess?
- Why are you using add_action for shortcode?
- Multiple post types – share same ReWrite slug?
- How to get URL param to shortcode?
- How do I remove a rewrite rule?
- How to add multiple buttons to TinyMCE?
- Problem with add_rewrite_rule and pagination (paged and page query_vars)
- Check if post/page has gallery?
- Get first video from the post (both embed and video shortcodes)
- Get shortcode name from within it’s callback function? [duplicate]
- Wordspress add into my javascripts
- Making a Shortcode [NEXT] and [PREVIOUS] to place into specific posts for post navigation
- How do I create a Shortcode that returns text if domain is .com, not .co.uk
- Using preg_replace to separate gallery from the_content?
- Remove specific shortcode from get_the_content()
- How to display the site name in a WordPress page, or post
- generate_rewrite_rules (action) vs add_rewrite_rule (function): which one is preferred?
- Hide/show content starting in the middle of a paragraph
- Combining shortcode and get_template_part
- add_rewrite_rule: $matches var not replaced by captured value
- How can I put a wp_redirect into a shortcode?
- Escaping quotes from shortcode attributes
- Run visual composer code in php page
- short code output too early
- Shortcode in shortcode: How to append variable?
- Remove wptexturize from a shortcode?
- How can i put an array as variable in shortcode_atts?
- Autoembeds don’t work with paragraphs
- Table of Contents with a shortcode
- Create custom [sourcecode] shortcode, the right way?
- TED talks shortcode not working
- Add rewrite rule to permalink structure
- Allowing shortcodes inside attributes
- What is the best way to enable nested shortcodes?
- Tinymce – How to hook before or after live shortcodes rendering?
- How to add a custom URL placeholder to author archives?
- How-to add rewrite rules to point the uploads folder to a subdomain
- How to customize a shortcode using the customizer
- Native “playlist” shortcode random playing… How?
- How to Output HTML tags in do_shortcode?
- List of all inbuilt WordPress shortcodes
- Nested Shortcode Detection
- Shortcode output always showing at top of page
- Organizing shortcodes. How to display all of them and their attributes?
- How to detect if a Shortcode is being called on a page?
- Preventing index.php?category_name=something from redirecting
- Rewrite Rules for Multiple (more than 2) Taxonomies
- How to get current page title inside a page itself in a shortcode and in page content
- Add Rewrite Rule for custom page
- how to have the gallery shortcode output one single UL list instead of several DL?
- Implement If-ElseIf-Else-EndIf with short codes
- Short code to display a loop
- Using shortcode in Post title
- using html as shortcode attribute
- How to Rewrite WordPress URL for a Plugin
- How to modify URL structures in custom post types and taxonomies or terms
- shortcode outputs first before the page content [duplicate]
- Adding meta values to permalink
- add_rewrite_rule not loading correct page nor getting variables
- Archive page with multiple taxonomies rewrite
- How to add ‘class’ attribute into shortcode [audio]?