<?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: Changing Mod Rewrite rules</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress support forums Topic: Changing Mod Rewrite rules</description>
<language>en</language>
<pubDate>Wed, 03 Dec 2008 03:39:28 +0000</pubDate>

<item>
<title>Mirce on "Changing Mod Rewrite rules"</title>
<link>http://bbpress.org/forums/topic/changing-mod-rewrite-rules#post-4667</link>
<pubDate>Mon, 19 Feb 2007 21:22:19 +0000</pubDate>
<dc:creator>Mirce</dc:creator>
<guid isPermaLink="false">4667@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I've made something similar. It still needs some work. You can see the result at &#60;a href=&#34;http://www.dfur.com&#34; rel=&#34;nofollow&#34;&#62;http://www.dfur.com&#60;/a&#62; and download the plugin from &#60;a href=&#34;http://bbpress.org/forums/topic/771&#34; rel=&#34;nofollow&#34;&#62;http://bbpress.org/forums/topic/771&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;This is my first plugin wrote and it needs some more work with the .htaccess rules. The pagination is not yet fixed and if somone could help me please let me know.&#60;/p&#62;
&#60;p&#62;Thanx.
&#60;/p&#62;</description>
</item>
<item>
<title>bbpressfriend on "Changing Mod Rewrite rules"</title>
<link>http://bbpress.org/forums/topic/changing-mod-rewrite-rules#post-4661</link>
<pubDate>Mon, 19 Feb 2007 18:43:47 +0000</pubDate>
<dc:creator>bbpressfriend</dc:creator>
<guid isPermaLink="false">4661@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Open bb-includes/template-functions.php and change:&#60;/p&#62;
&#60;p&#62;		$link = bb_get_option('uri') . &#34;forum/$forum-&#38;gt;forum_id&#34; . ( 1 &#38;lt; $page ? &#34;/page/$page&#34; : '' );&#60;/p&#62;
&#60;p&#62;to&#60;/p&#62;
&#60;p&#62;		$link = bb_get_option('uri') . &#34;forum-$forum-&#38;gt;forum_id&#34; . ( 1 &#38;lt; $page ? &#34;/page/$page&#34; : '' );&#60;/p&#62;
&#60;p&#62;Now open your .htaccess file and change:&#60;/p&#62;
&#60;p&#62;RewriteRule ^forum/(.+)/page/?([0-9]{1,})/?$ forum.php?id=$1&#38;#38;page=$2 [QSA,L]&#60;br /&#62;
RewriteRule ^forum/(.+)/?$ forum.php?id=$1 [QSA,L]&#60;/p&#62;
&#60;p&#62;to&#60;/p&#62;
&#60;p&#62;RewriteRule ^forum-(.+)/page/?([0-9]{1,})/?$ forum.php?id=$1&#38;#38;page=$2 [QSA,L]&#60;br /&#62;
RewriteRule ^forum-(.+)/?$ forum.php?id=$1 [QSA,L]&#60;/p&#62;
&#60;p&#62;bye
&#60;/p&#62;</description>
</item>
<item>
<title>nateolson on "Changing Mod Rewrite rules"</title>
<link>http://bbpress.org/forums/topic/changing-mod-rewrite-rules#post-4660</link>
<pubDate>Mon, 19 Feb 2007 18:22:22 +0000</pubDate>
<dc:creator>nateolson</dc:creator>
<guid isPermaLink="false">4660@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Nice. Keep rockin' it.
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Changing Mod Rewrite rules"</title>
<link>http://bbpress.org/forums/topic/changing-mod-rewrite-rules#post-4658</link>
<pubDate>Mon, 19 Feb 2007 15:55:02 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">4658@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Here's a sneak peak at the patch functionality....&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.network.net.au/bbpress/patches/permalinks/teaser.gif&#34; rel=&#34;nofollow&#34;&#62;http://www.network.net.au/bbpress/patches/permalinks/teaser.gif&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Still working out a few details.
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Changing Mod Rewrite rules"</title>
<link>http://bbpress.org/forums/topic/changing-mod-rewrite-rules#post-4620</link>
<pubDate>Sun, 18 Feb 2007 11:35:49 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">4620@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Actually, it's harder than this. What I wrote above is only a part of the issue. I'm working on a patch at the moment.
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Changing Mod Rewrite rules"</title>
<link>http://bbpress.org/forums/topic/changing-mod-rewrite-rules#post-4353</link>
<pubDate>Sun, 11 Feb 2007 09:58:05 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">4353@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;All the magic happens in bb_repermalink() in bb-includes/function.php but the real problem here is that get_path() splits by &#34;/&#34; to find out the topic/forum/user id.&#60;/p&#62;
&#60;p&#62;You could plugin to bb_repermalink() and change the value of $permalink that way.&#60;/p&#62;
&#60;p&#62;e.g. if your permalinks were of the form, forum-12, topic-34 etc. (already setup in your .htaccess file)&#60;/p&#62;
&#60;p&#62;You could make the following file...&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;
function my_pre_permalink() {
        $p = get_path(0);
        $p = split(&#38;#39;-&#38;#39;, $p);
        $p = $p[1];
        return $p;
}

add_action(&#38;#39;pre_permalink&#38;#39;, &#38;#39;my_pre_premalink&#38;#39;);
&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Drop that into your plugins directory and it should work.&#60;/p&#62;
&#60;p&#62;Of course I haven't tested this, but it should work in theory.
&#60;/p&#62;</description>
</item>
<item>
<title>Trent on "Changing Mod Rewrite rules"</title>
<link>http://bbpress.org/forums/topic/changing-mod-rewrite-rules#post-4287</link>
<pubDate>Fri, 09 Feb 2007 20:32:09 +0000</pubDate>
<dc:creator>Trent</dc:creator>
<guid isPermaLink="false">4287@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I don't know anyone that has successfully done it (at least I can't remember a post or anyone bragging about it), but I created  a TRAC ticket for a future version on this issue:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://trac.bbpress.org/ticket/579&#34; rel=&#34;nofollow&#34;&#62;http://trac.bbpress.org/ticket/579&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;You might be able to play with rewrite-rules.php in the /bb-admin/ folder to get some direction on what to change in the meantime to play with it, but I don't believe it is pluggable (for a plugin).&#60;/p&#62;
&#60;p&#62;Trent
&#60;/p&#62;</description>
</item>
<item>
<title>Mirce on "Changing Mod Rewrite rules"</title>
<link>http://bbpress.org/forums/topic/changing-mod-rewrite-rules#post-4286</link>
<pubDate>Fri, 09 Feb 2007 20:23:28 +0000</pubDate>
<dc:creator>Mirce</dc:creator>
<guid isPermaLink="false">4286@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I've read some posts and it looks that lots of people want to play with their permalinks. WP handles great this link customization but I was unable to find anything for bbPress. Does anyone had any success with changing the mod_rewrite rules and modifying the current permalinks?&#60;/p&#62;
&#60;p&#62;Thanx.
&#60;/p&#62;</description>
</item>
<item>
<title>Mirce on "Changing Mod Rewrite rules"</title>
<link>http://bbpress.org/forums/topic/changing-mod-rewrite-rules#post-4262</link>
<pubDate>Fri, 09 Feb 2007 12:25:07 +0000</pubDate>
<dc:creator>Mirce</dc:creator>
<guid isPermaLink="false">4262@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Hi,&#60;br /&#62;
I've successfully installed bbPress and Pretty Premalinks on my site. I want to modify the Premalinks.&#60;/p&#62;
&#60;p&#62;For example:&#60;br /&#62;
&#60;a href=&#34;http://www.example.com/forum/1&#34; rel=&#34;nofollow&#34;&#62;http://www.example.com/forum/1&#60;/a&#62;&#60;br /&#62;
to become&#60;br /&#62;
&#60;a href=&#34;http://www.example.com/forum-1&#34; rel=&#34;nofollow&#34;&#62;http://www.example.com/forum-1&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I tried to modify the admin/rewrite-rules.php.  &#60;/p&#62;
&#60;p&#62;RewriteRule ^forum/([0-9]+)/page/([0-9]+)$ &#38;lt;?php bb_option( 'path' ); ?&#38;gt;forum.php?id=$1&#38;#38;page=$2 [L,QSA]&#60;br /&#62;
My ideea was:&#60;br /&#62;
RewriteRule ^forum-([0-9]+)/page/([0-9]+)$ &#38;lt;?php bb_option( 'path' ); ?&#38;gt;forum.php?id=$1&#38;#38;page=$2 [L,QSA]&#60;/p&#62;
&#60;p&#62;However all the changes I do the rewrite-rules.php give an error and do not modify the ULR. Is there another file where the rewrite-rules are configured?&#60;/p&#62;
&#60;p&#62;Thanx for the support.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
