<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>Forums, Blogs, Wikis Topic: bbPress, WordPress, and 404 Errors</title>
<link>http://forumsblogswikis.com/forum/</link>
<description>Forums, Blogs, Wikis Topic: bbPress, WordPress, and 404 Errors</description>
<language>en</language>
<pubDate>Sun, 01 Aug 2010 00:27:21 +0000</pubDate>

<item>
<title>wvoelcker on "bbPress, WordPress, and 404 Errors"</title>
<link>http://forumsblogswikis.com/forum/topic/9#post-56</link>
<pubDate>Tue, 14 Apr 2009 04:53:51 +0000</pubDate>
<dc:creator>wvoelcker</dc:creator>
<guid isPermaLink="false">56@http://forumsblogswikis.com/forum/</guid>
<description>&#60;p&#62;You are a life-saver.  Thank you so much.
&#60;/p&#62;</description>
</item>
<item>
<title>ryan on "bbPress, WordPress, and 404 Errors"</title>
<link>http://forumsblogswikis.com/forum/topic/9#post-15</link>
<pubDate>Mon, 14 Apr 2008 18:57:02 +0000</pubDate>
<dc:creator>ryan</dc:creator>
<guid isPermaLink="false">15@http://forumsblogswikis.com/forum/</guid>
<description>&#60;p&#62;Turns out I needed to edit the plugin code a little to take care of the tag and profile links since they were still returning 404s.&#60;/p&#62;
&#60;p&#62;Here is the completed code.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;?php&#60;br /&#62;
/*&#60;br /&#62;
Plugin Name: bbPress 404 Fixer&#60;br /&#62;
Description: Fixes 404 errors in bbPress wrapped in WordPress&#60;br /&#62;
Version: 0.0.1&#60;br /&#62;
*/&#60;br /&#62;
function forum_flush_rewrites() {&#60;br /&#62;
	global $wp_rewrite;&#60;br /&#62;
	$wp_rewrite-&#38;gt;flush_rules();&#60;br /&#62;
}&#60;br /&#62;
add_action('init', 'forum_flush_rewrites');&#60;br /&#62;
function forum_add_rewrites($wp_rewrite) {&#60;br /&#62;
	add_rewrite_rule('forum/topic', 'forum/topic.php');&#60;br /&#62;
	add_rewrite_rule('forum/forum', 'forum/forum.php');&#60;br /&#62;
	add_rewrite_rule('forum/profile', 'forum/profile.php');&#60;br /&#62;
	add_rewrite_rule('forum/tags', 'forum/tags.php');&#60;br /&#62;
	add_rewrite_rule('forum', 'forum/index.php');&#60;br /&#62;
	$wp_rewrite-&#38;gt;rules = array_merge($wp_rewrite-&#38;gt;non_wp_rules, $wp_rewrite-&#38;gt;rules);&#60;br /&#62;
}&#60;br /&#62;
add_action('generate_rewrite_rules', 'forum_add_rewrites');&#60;br /&#62;
?&#38;gt;&#60;/code&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>ryan on "bbPress, WordPress, and 404 Errors"</title>
<link>http://forumsblogswikis.com/forum/topic/9#post-14</link>
<pubDate>Mon, 14 Apr 2008 18:12:02 +0000</pubDate>
<dc:creator>ryan</dc:creator>
<guid isPermaLink="false">14@http://forumsblogswikis.com/forum/</guid>
<description>&#60;p&#62;Found a partial solution at the &#60;a href=&#34;http://bbpress.org/forums/topic/bbpress-wordpress-mu-or-not-leads-to-404-errors-but-pages-still-load&#34;&#62;bbPress support forum&#60;/a&#62;.  It involved writing a WordPress plugin to add a few rewrite rules.  Forum topic and board indexes seem to be returning 200 headers like they should be.  The only problem is that if I browse to a non-existing thread id and the bbPress error message shows for topic not found the header is still a 200.
&#60;/p&#62;</description>
</item>
<item>
<title>ryan on "bbPress, WordPress, and 404 Errors"</title>
<link>http://forumsblogswikis.com/forum/topic/9#post-13</link>
<pubDate>Mon, 14 Apr 2008 08:59:53 +0000</pubDate>
<dc:creator>ryan</dc:creator>
<guid isPermaLink="false">13@http://forumsblogswikis.com/forum/</guid>
<description>&#60;p&#62;This forum is wrapped inside the WordPress theme to keep the style consistent across the site.  To do that I included the WordPress blog-header.php file because I needed to be able to use the sidebar widgets even though the forum software is technically running separately.&#60;/p&#62;
&#60;p&#62;I noticed a major problem though.  Even though the forum pages are displaying correctly, the server is returning a 404 header so search engines think the page isn't there.  I know the reason is because I'm including that blog-header.php file and WordPress thinks the forum page doesn't exist.  But I'm looking for a solution to what seems to be a fairly significant problem.  &#60;/p&#62;
&#60;p&#62;And I did find a WordPress plugin that overrides the 404 header by sending a 200 header later, but that seems like it would cause even the correctly sent 404s to be overridden as well and that doesn't do any good.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
