Flush rewrite rules when every page gives 500 error?
You can remove the offending rewrite rule manually from the .htaccess file, in the web site’s root. Thanks, “mmm”!
You can remove the offending rewrite rule manually from the .htaccess file, in the web site’s root. Thanks, “mmm”!
A part of regular expression in add_rewrite_rule function not working
There are a couple of issues with your regular expression: ^model_more/(\d*)$ ^— Says “match start of line” In your URLs, the start of the line is actually /model/, so ^model_more will never match. Instead, try a regex like this: ^model/[^/]+/model_more/(\d+)/?$ [^/]+ says “match anything except /, since I would guess there are multiple models under … Read more
Rewrite Rules, Query Vars and Pagination
WordPress matching URLs with trailing tildes code correction
Custom Fields Query Vars and Rewrite not working
so the problem with the colon is that it has no special meaning so your regex is looking to match :/ literally – that would work for a string with a structure like: /madagascar/subpage:/2 you would get a full match and 4 groups: array ( [0] => ‘madagascar/subpage:/2’ [1] => ‘madagascar’ [2] => ‘subpage’ [3] … Read more
You can use author_rewrite_rules filter to change rules to look like ones you want them to look, and then implement redirection on request or template_redirect filters/actions. P.S. URL you want to implement isn’t really good as it already fits to the page rewrite rules.
Rewrite post type into a page with year filter
Overcoming a complex WordPress page rewrite rules request