I don’t know what’s wrong but I can suggest:
- Use Rewrite Rules Inspector or similar to see where your
%psubject%
rule is and if its pattern ((option1|option2|option3)
) has been added correctly. - Test
http://example.com/somecategory/option1/this-is-the-post-title
with the Inspector to see which rule matches. - Open
http://example.com/somecategory/option1/this-is-the-post-title
(when it showshome.php
) with the Debug Bar plugin and look at Query String, Matched Rewrite Rule, and Matched Rewrite Query.
Related Posts:
- Permalinks, Rewrites, Get Variables, Oh My!
- custom permalink/shortlink with base62 encoded post ID
- Custom permalink leads to index page
- How to test custom rewrite rules /permalinks?
- Multiple Taxonomy Items for Separate URLs
- Create new URL structure for custom post types
- a way to support totally different url structure
- make a new structure tag that does some processing
- Need help with add_rewrite_rule
- Custom post type permalink endpoint
- permalink independent on the post’s name stored in the database
- How to add a custom URL placeholder to author archives?
- Permalink/Pagination issue: Category base name same as page name
- permastruct for custom post type not working in one of four cases
- Custom Rewrite with Query vars
- Using two permalinks for one post
- add_rewrite_rule with 3 or fewer matches?
- Change the custom post type permalink
- Custom rewrite rules for feeds of custom queries (query_var query strings in URL)?
- Rewrite url / permalink for default archive – yearly / monthly
- Rewriting permalinks with custom posts
- Rewrite rule never matching
- What add_rewrite_tag()’s RegEx matches against?
- Child pages with same slug
- Rewrite-Rules not working on a vhost, everything goes to index.php
- Date archive permalink modification
- Change permalink for a single post entry
- How to Modify Existing Rewrite Rules?
- When is it a good idea to build a permalink structure from scratch?
- query_vars in plugin not working?
- I need a custom permalink for my website
- Permalinks: Page Not Found
- Why is add_rewrite_endpoint incompatible with /%category%/%postname%/ permalink structure?
- How to add_rewrite_rule with two parameters to a single view page?
- Rewrite Rule for default post type
- how to add rewrite rule to wordpress default post type
- Remove custom taxonomy base from URL
- Custom query var rewriting with only variable
- Date Archives’ Permalinks under Category folder
- remove sub-category of Custom Post Type from permalink structure
- add_rewrite_rule not working for me
- Is a permastruct possible on pages?
- Using WP Rewrite, but just not “getting it”
- Rewrite rule for a query string
- How do I add /blog/ as a prefix to permalink structure for posts, categories & tags?
- Rewrite CPT permalinks and include WPML language
- Redirect Uploads Folder to Query Vars in WordPress
- Custom permalink for specific category
- Rewrite rule intended for CPTs gives 404 for pages
- WordPress add_rewrite_tag working for Posts, but not working for Pages
- Need To Add Custom rewrite base url for individual user
- Rewrite URLs for LeadPages due to subdirectory installation
- Permalink structure between 2 custom post types and a taxonomy
- 404 error using Meta for Permalink rewrite
- Permalinks only for posts
- rewrite rule to redirect to the most recent date permalink
- How to change “attachment_id” in attachment permarlink?
- Custom rewrite rule ignored
- wordpress how to replace url /bar with foo/bar for custom post type
- Remove some rewrite rules in wordpress
- Permalink for PDF of article
- Problems with rewrite rule
- Custom Post Type posts, conflict with posts after add_rewrite_rule to top
- Combine multiple CPT names to create valid permalinks
- Getting back a permalink from custom url
- add_rewrite_rule on default post type
- Exclude single page from permalink rule
- add_rewrite_rule – Page Slug from “/foo-bar/” to “/foo/bar/”
- Add custom query vars to pretty permalinks
- How can you create a Permalink structure on a WordPress site?
- How can I set up a secondary permalink structure?
- Rewrite rule not passing variable
- rewrite based slug standar post wp
- Adding custom query var to a single post without redirecting to its root slug
- remove SLASH on single_post but KEEP on categories and parent pages
- Fire a code when permalinks updated
- .htaccess to redirect to a wp page
- Flush rewrite rules with scheduled event (cron)
- Multiple URL rewrite rules and get every prams
- Using a template file for a specific custom URL
- WordPress Multisite ABSPATH and get_home_path() to check for htaccess or web.config file
- Add slug to default post permalinks ONLY
- How to add rewrite rule for product compare page?
- Permalink structure /page/page/cpt-post gives 404 with pagination
- How to change the URL using rewrite rule in wordpress
- No Ones Been Able to Override my WordPress Rewrite Rule Issue!
- Rewrite posts url as they’re all children of a page
- Multiple Permalink Patterns for one page
- Pretty Filter URL
- WordPress Pagination Custom Rewrite Rule for Pages
- rewrites and custom links in page need help with add_rewrite_rule
- Add Custom Pagination Permalink
- Prevent guessing slug
- Why doesn’t WP update my .htaccess file?
- ReWrite Permalink to New Permalink Nginx
- WordPress permalink still not working (error or not understood?)
- Custom rewrites for pages and categories
- WordPress custom permalinks, pages are now 404
- Standard Htaccess directives disappear by themselves
- ‘Unsupported Operand Types’ error stemming from taxonomy re-writes with PHP 8.1