<?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>bbPress support forums Topic: permalinks with trailing slash</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress support forums Topic: permalinks with trailing slash</description>
<language>en</language>
<pubDate>Tue, 02 Dec 2008 09:09:15 +0000</pubDate>

<item>
<title>_ck_ on "permalinks with trailing slash"</title>
<link>http://bbpress.org/forums/topic/permalinks-with-trailing-slash#post-9139</link>
<pubDate>Fri, 20 Jul 2007 08:25:53 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">9139@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;If it makes you feel any better, wordpress doesn't deal with it well either. &#60;/p&#62;
&#60;p&#62;I have to trick it into enforcing trailing slashes like this:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_URI} !..+$
RewriteCond %{REQUEST_URI} !/$
RewriteRule (.*) $1/ [R=301,L,QSA]&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and that doesn't even work half the time depending on what other  htaccess trickery I've got going on&#60;/p&#62;
&#60;p&#62;But I notice if I have slugs turned on in bbpress, it will remove the trailing slash always. If I have slugs turned off, it won't tolerate a trailing slash at all and will 404&#60;/p&#62;
&#60;p&#62;I did manage to get the topmost rss feed to tolerate slash or not using this obvious mod&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;RewriteRule ^rss(/&#124;)$ /forums/rss.php [L,QSA]&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;One thing that is important to do in bbpress vs how it's typically done in wordpress, is not re-use/re-load the bbpress core engine if there is a redirect (which doubles the mysql calls) but to try to do it through htaccess
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "permalinks with trailing slash"</title>
<link>http://bbpress.org/forums/topic/permalinks-with-trailing-slash#post-9138</link>
<pubDate>Fri, 20 Jul 2007 07:51:20 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">9138@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;You should ticket this in Trac, we should probably deal with this case better than we do.
&#60;/p&#62;</description>
</item>
<item>
<title>_ck_ on "permalinks with trailing slash"</title>
<link>http://bbpress.org/forums/topic/permalinks-with-trailing-slash#post-9135</link>
<pubDate>Fri, 20 Jul 2007 05:28:57 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">9135@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I can't use multiviews so any rewrite gurus know how to make the full rewrite rules set deal with trailing backslashes?&#60;/p&#62;
&#60;p&#62;I'd like to allow it work either way (with or without the final slash)
&#60;/p&#62;</description>
</item>

</channel>
</rss>
