I've added this to my functions.php page:
function custom_rewrite_basic() {
add_rewrite_rule('^leaf/([0-9]+)/?', 'index.php?page_id=$matches[1]', 'top');
}
add_action('init', 'custom_rewrite_basic');
But when I go to http://example.com/leaf/1234, I get a funky 404 page. Anyone know what's going on?