I had a simple rewrite that seems to be broken after a WP update.
In my functions.php I have:
function custom_rewrite_basic() {
add_rewrite_rule('^design/*', '/index.php?page_id=24565', 'top');
}
add_action('init', 'custom_rewrite_basic');
And in my htaccess I have:
RewriteRule ^^design/* //index.php?page_id=24565 [QSA,L]
The goal is to have an end-user load domain.com/design/123 and then the design page loads which references page id 24565 but after the page loads the 123 ID should still be attached to the URL.
Currently, if I try to load domain.com/design/123 it loads doamin.com/design and drops the 123 ID. Any suggestions? I recently updated WP to latest version and I think it broke it.