Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: bbPress + WordPress (mu or not) leads to 404 errors, but p


icesar
Member

@icesar

Thanks for the reply Chris. Yes, I’m using 2.3.3 right now. The content of the plugin code is exactly as above:

function mbob_flush_rewrites() {
global $wp_rewrite;
$wp_rewrite->flush_rules();
}
add_action('init', 'mbob_flush_rewrites');

function mbob_add_rewrites($wp_rewrite) {
add_rewrite_rule('forums/topic', 'forums/topic.php');
add_rewrite_rule('forums/forum', 'forums/forum.php');
add_rewrite_rule('forums', 'forums/index.php');
$wp_rewrite->rules = array_merge($wp_rewrite->non_wp_rules, $wp_rewrite->rules);
}
add_action('generate_rewrite_rules', 'mbob_add_rewrites');

And I’m not getting a specific error really. Simply that when I upload no404s.php with this code to my wp-content/plugins directory, there is no listing in the Plugins tab to even activate it.

Skip to toolbar