Is it possible to add a site-wide add_rewrite_rule for a multilingual site?

I don’t know if this can be done at once —using maybe an htaccess rule–. But, I think rebuilding the existing rewrite rules instead of adding new ones can do the trick. There are filters available for each group of rewrite rules: post_rewrite_rules date_rewrite_rules comments_rewrite_rules search_rewrite_rules author_rewrite_rules page_rewrite_rules {post_type}_rewrite_rules {taxonomy}_rewrite_rules By using ‘post_rewrite_rules’ filter we … Read more

WordPress rewrite rule for specific page and second parametr doesnt work

OK I solved this problem: New code: add_action(‘init’, ‘add_test_url’); function add_test_url() { global $wp_rewrite; add_rewrite_tag(‘%v%’, ‘(.+)’); add_rewrite_rule(‘^page-test/([^/]+)/?$’, ‘index.php?pagename=page-test&v=$matches[1]’, ‘top’); $wp_rewrite->flush_rules(); } /// for debug GET value: function console_log($content) { echo “<!– console_log: ” . get_query_var(‘v’) . “–>”; } add_filter(‘loop_start’, ‘console_log’, 9); Only thing left is .htaccess redirects from old url to new url: <IfModule mod_rewrite.c> … Read more

How to do make mysite.com/post-name/sub-post?

You could create a custom post type and set hierarchical to true, but keep the post capability role. The link below is a good starting place. http://codex.wordpress.org/Post_Types Although I would strongly recommend using some sort of javascript html css workaround. Maybe a jquery ui tabbed interface located inside of your single.php theme like “http://www.mysite.com/post-name/#video”

Rewrite rule that wp-login.php?action=register is left alone

I’m assuming that you’re working with one of the latest versions, but I used the latest 1.5.1. Without knowing how your specific Facebook Connect plugin works and why it breaks here’s what I’ve come up with. Short answer // bp-members/bp-members-signup.php ~ line 611 if ( defined( ‘BP_SKIP_REGISTRATION_REDIRECT’ ) and BP_SKIP_REGISTRATION_REDIRECT ) wp_redirect( ‘/?pagename=register’ ); And … Read more