<?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: Rewrite rules under lighttpd?</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress support forums Topic: Rewrite rules under lighttpd?</description>
<language>en</language>
<pubDate>Tue, 02 Dec 2008 14:47:18 +0000</pubDate>

<item>
<title>shoggy on "Rewrite rules under lighttpd?"</title>
<link>http://bbpress.org/forums/topic/rewrite-rules-under-lighttpd#post-18669</link>
<pubDate>Tue, 26 Aug 2008 15:14:12 +0000</pubDate>
<dc:creator>shoggy</dc:creator>
<guid isPermaLink="false">18669@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I tried greenhome's solution and it almost worked. Thanks! :-)&#60;/p&#62;
&#60;p&#62;However I got some minor errors, especially with links like &#60;a href=&#34;http://domain.tld/forums/topic/test?replies=3#post-17&#34; rel=&#34;nofollow&#34;&#62;http://domain.tld/forums/topic/test?replies=3#post-17&#60;/a&#62; or &#60;a href=&#34;http://domain.tld/forums/profile/username/favorites?fav=0&#38;#38;topic_id=1&#38;#38;_wpnonce=10a4ad44b8&#34; rel=&#34;nofollow&#34;&#62;http://domain.tld/forums/profile/username/favorites?fav=0&#38;#38;topic_id=1&#38;#38;_wpnonce=10a4ad44b8&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Here is a workaround :&#60;/p&#62;
&#60;p&#62;In /etc/lighttpd/bbpress-rewrite.conf, I have :&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
url.rewrite-once += (&#60;br /&#62;
        # /forum/FORUM-NAME&#60;br /&#62;
        &#34;^&#34; + bbpressdir + &#34;forum/([^/]+)/page/([0-9]+)/?$&#34; =&#38;gt; bbpressdir + &#34;forum.php?id=$1&#38;#38;page=$2&#34;,&#60;br /&#62;
        &#34;^&#34; + bbpressdir + &#34;forum/([^/]+)/?$&#34; =&#38;gt; bbpressdir + &#34;forum.php?id=$1&#34;,&#60;br /&#62;
        # /topic/TOPIC-NAME&#60;br /&#62;
        &#34;^&#34; + bbpressdir + &#34;topic/([^/\?]+)(\?(.*))?$&#34; =&#38;gt; bbpressdir + &#34;topic.php?id=$1&#38;#38;$3&#34;,&#60;br /&#62;
        &#34;^&#34; + bbpressdir + &#34;topic/([^/]+)/page/([0-9]+)(\?(.*))?/?$&#34; =&#38;gt; bbpressdir + &#34;topic.php?id=$1&#38;#38;page=$2&#38;#38;$4&#34;,&#60;br /&#62;
        # /tags/TAG-NAME&#60;br /&#62;
        &#34;^&#34; + bbpressdir + &#34;tags/([^/]+)/page/([0-9]+)/?$&#34; =&#38;gt; bbpressdir + &#34;tags.php?tag=$1&#38;#38;page=$2&#34;,&#60;br /&#62;
        &#34;^&#34; + bbpressdir + &#34;tags/([^/]+)/?$&#34; =&#38;gt; bbpressdir + &#34;tags.php?tag=$1&#34;,&#60;br /&#62;
        &#34;^&#34; + bbpressdir + &#34;tags/?$&#34; =&#38;gt; bbpressdir + &#34;tags.php&#34;,&#60;br /&#62;
        # /profile/PROFILE-NAME&#60;br /&#62;
        &#34;^&#34; + bbpressdir + &#34;profile/([^/]+)/([^/]+)/page/([0-9]+)/?$&#34; =&#38;gt; bbpressdir + &#34;profile.php?id=$1&#38;#38;tab=$2&#38;#38;page=$3&#34;,&#60;br /&#62;
        &#34;^&#34; + bbpressdir + &#34;profile/([^/]+)/page/([0-9]+)/?$&#34; =&#38;gt; bbpressdir + &#34;profile.php?id=$1&#38;#38;page=$2&#34;,&#60;br /&#62;
        &#34;^&#34; + bbpressdir + &#34;profile/([^/]+)/([^/\?]+)(\?(.*))?/?$&#34; =&#38;gt; bbpressdir + &#34;profile.php?id=$1&#38;#38;tab=$2&#38;#38;$4&#34;,&#60;br /&#62;
        #&#34;^&#34; + bbpressdir + &#34;profile/([^/]+)/([^/]+)/?$&#34; =&#38;gt; bbpressdir + &#34;profile.php?id=$1&#38;#38;tab=$2&#34;,&#60;br /&#62;
        &#34;^&#34; + bbpressdir + &#34;profile/([^/\?]+)(\?(.*))?$&#34; =&#38;gt; bbpressdir + &#34;profile.php?id=$1&#38;#38;$3&#34;,&#60;br /&#62;
        # /view/VIEW-NAME&#60;br /&#62;
        &#34;^&#34; + bbpressdir + &#34;view/([^/]+)/page/([0-9]+)/?$&#34; =&#38;gt; bbpressdir + &#34;view.php?view=$1&#38;#38;page=$2&#34;,&#60;br /&#62;
        &#34;^&#34; + bbpressdir + &#34;view/([^/]+)/?$&#34; =&#38;gt; bbpressdir + &#34;view.php?view=$1&#34;,&#60;br /&#62;
        &#34;^&#34; + bbpressdir + &#34;rss/?$&#34; =&#38;gt; bbpressdir + &#34;rss.php&#34;,&#60;br /&#62;
        # /rss/FEED-NAME&#60;br /&#62;
        &#34;^&#34; + bbpressdir + &#34;rss/forum/([^/]+)/?$&#34; =&#38;gt; bbpressdir + &#34;rss.php?forum=$1&#34;,&#60;br /&#62;
        &#34;^&#34; + bbpressdir + &#34;rss/topic/([^/]+)/?$&#34; =&#38;gt; bbpressdir + &#34;rss.php?topic=$1&#34;,&#60;br /&#62;
        &#34;^&#34; + bbpressdir + &#34;rss/tags/([^/]+)/?$&#34; =&#38;gt; bbpressdir + &#34;rss.php?tag=$1&#34;,&#60;br /&#62;
        &#34;^&#34; + bbpressdir + &#34;rss/profile/([^/]+)/?$&#34; =&#38;gt; bbpressdir + &#34;rss.php?profile=$1&#34;&#60;br /&#62;
)&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Finally, I just add this configuration for each vhost using bbpress :&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
$HTTP[&#34;host&#34;] =~ &#34;domain\.tld&#34; {&#60;br /&#62;
        var.bbpressdir = &#34;/forums/&#34;&#60;br /&#62;
        include &#34;bbpress-rewrite.conf&#34;&#60;br /&#62;
}&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Hope this helps!
&#60;/p&#62;</description>
</item>
<item>
<title>shoggy on "Rewrite rules under lighttpd?"</title>
<link>http://bbpress.org/forums/topic/rewrite-rules-under-lighttpd#post-18665</link>
<pubDate>Tue, 26 Aug 2008 13:55:12 +0000</pubDate>
<dc:creator>shoggy</dc:creator>
<guid isPermaLink="false">18665@http://bbpress.org/forums/</guid>
<description>&#60;br /&#62;</description>
</item>
<item>
<title>greenhome on "Rewrite rules under lighttpd?"</title>
<link>http://bbpress.org/forums/topic/rewrite-rules-under-lighttpd#post-15784</link>
<pubDate>Sat, 26 Apr 2008 03:49:22 +0000</pubDate>
<dc:creator>greenhome</dc:creator>
<guid isPermaLink="false">15784@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Ah, thanks :)  I hadn't bothered to go back and see if those minor things were working correctly on the old server.
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Rewrite rules under lighttpd?"</title>
<link>http://bbpress.org/forums/topic/rewrite-rules-under-lighttpd#post-15759</link>
<pubDate>Fri, 25 Apr 2008 15:03:26 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">15759@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;&#38;gt; but it still seems to be breaking on some minor things (like adding a topic to your favorites while logged in)&#60;/p&#62;
&#60;p&#62;Actually, that's bbPress that's broken, not your rules. Fixed in the next release :)
&#60;/p&#62;</description>
</item>
<item>
<title>greenhome on "Rewrite rules under lighttpd?"</title>
<link>http://bbpress.org/forums/topic/rewrite-rules-under-lighttpd#post-15747</link>
<pubDate>Thu, 24 Apr 2008 16:58:40 +0000</pubDate>
<dc:creator>greenhome</dc:creator>
<guid isPermaLink="false">15747@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I got very close, playing around with converting it on my own.  I took the .htaccess file that was generated on the old server and used it to create this (placed in my lighttpd config file):&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
url.rewrite-once = (&#60;br /&#62;
&#34;^/forum/([^/]+)/page/([0-9]+)/?$&#34; =&#38;gt; &#34;/forum.php?id=$1&#38;#38;page=$2&#34;,&#60;br /&#62;
&#34;^/forum/([^/]+)/?$&#34; =&#38;gt; &#34;/forum.php?id=$1&#34;,&#60;br /&#62;
&#34;^/topic/([^/]+)/page/([0-9]+)/?$&#34; =&#38;gt; &#34;/topic.php?id=$1&#38;#38;page=$2&#34;,&#60;br /&#62;
&#34;^/topic/([^/]+)/?$&#34; =&#38;gt; &#34;/topic.php?id=$1&#34;,&#60;br /&#62;
&#34;^/tags/([^/]+)/page/([0-9]+)/?$&#34; =&#38;gt; &#34;/tags.php?tag=$1&#38;#38;page=$2&#34;,&#60;br /&#62;
&#34;^/tags/([^/]+)/?$&#34; =&#38;gt; &#34;/tags.php?tag=$1&#34;,&#60;br /&#62;
&#34;^/tags/?$&#34; =&#38;gt; &#34;/tags.php&#34;,&#60;br /&#62;
&#34;^/profile/([^/]+)/page/([0-9]+)/?$&#34; =&#38;gt; &#34;/profile.php?id=$1&#38;#38;page=$2&#34;,&#60;br /&#62;
&#34;^/profile/([^/]+)/([^/]+)/?$&#34; =&#38;gt; &#34;/profile.php?id=$1&#38;#38;tab=$2&#34;,&#60;br /&#62;
&#34;^/profile/([^/]+)/([^/]+)/page/([0-9]+)/?$&#34; =&#38;gt; &#34;/profile.php?id=$1&#38;#38;tab=$2&#38;#38;page=$3&#34;,&#60;br /&#62;
&#34;^/profile/([^/]+)/([^/]+)/favorites/?$&#34; =&#38;gt; &#34;/profile.php?id=$1&#38;#38;tab=favorites&#34;,&#60;br /&#62;
&#34;^/profile/([^/]+)/?$&#34; =&#38;gt; &#34;/profile.php?id=$1&#34;,&#60;br /&#62;
&#34;^/view/([^/]+)/page/([0-9]+)/?$&#34; =&#38;gt; &#34;/view.php?view=$1&#38;#38;page=$2&#34;,&#60;br /&#62;
&#34;^/view/([^/]+)/?$&#34; =&#38;gt; &#34;/view.php?view=$1&#34;,&#60;br /&#62;
&#34;^/rss/?$&#34; =&#38;gt; &#34;/rss.php&#34;,&#60;br /&#62;
&#34;^/rss/forum/([^/]+)/?$&#34; =&#38;gt; &#34;/rss.php?forum=$1&#34;,&#60;br /&#62;
&#34;^/rss/topic/([^/]+)/?$&#34; =&#38;gt; &#34;/rss.php?topic=$1&#34;,&#60;br /&#62;
&#34;^/rss/tags/([^/]+)/?$&#34; =&#38;gt; &#34;/rss.php?tag=$1&#34;,&#60;br /&#62;
&#34;^/rss/profile/([^/]+)/?$&#34; =&#38;gt; &#34;/rss.php?profile=$1&#34;&#60;br /&#62;
)&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Most of the functionality works, but it still seems to be breaking on some minor things (like adding a topic to your favorites while logged in).
&#60;/p&#62;</description>
</item>
<item>
<title>_ck_ on "Rewrite rules under lighttpd?"</title>
<link>http://bbpress.org/forums/topic/rewrite-rules-under-lighttpd#post-15746</link>
<pubDate>Thu, 24 Apr 2008 16:13:12 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">15746@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I've never seen it done but the rules are fairly straightforward (just a bunch of them).&#60;/p&#62;
&#60;p&#62;There must be a lighttpd support area where you can submit the existing rules and ask for help converting?&#60;/p&#62;
&#60;p&#62;(then be sure to share the results back here ;-)&#60;/p&#62;
&#60;p&#62;The rules on this page for something called &#34;serendipity&#34; look very similar to bbPress's rules:&#60;br /&#62;
&#60;a href=&#34;http://edin.dk/archives/34-Serendipity-on-Lighty.html&#34; rel=&#34;nofollow&#34;&#62;http://edin.dk/archives/34-Serendipity-on-Lighty.html&#60;/a&#62;&#60;br /&#62;
so you might be able to use them to get an idea?
&#60;/p&#62;</description>
</item>
<item>
<title>greenhome on "Rewrite rules under lighttpd?"</title>
<link>http://bbpress.org/forums/topic/rewrite-rules-under-lighttpd#post-15689</link>
<pubDate>Tue, 22 Apr 2008 20:49:50 +0000</pubDate>
<dc:creator>greenhome</dc:creator>
<guid isPermaLink="false">15689@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I am attempting to move my bbPress site over to a server running lighttpd - I'm running into problems converting over the rewrite rules.&#60;/p&#62;
&#60;p&#62;I have modified the lighttpd config files successfully to get WordPress, Magento, and some other apps working under lighttpd, but have not been able to find any examples for bbPress.  Has anyone done this successfully?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
