<?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: Rewriting URLs</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress support forums Topic: Rewriting URLs</description>
<language>en</language>
<pubDate>Tue, 02 Dec 2008 15:07:14 +0000</pubDate>

<item>
<title>marky on "Rewriting URLs"</title>
<link>http://bbpress.org/forums/topic/rewriting-urls#post-4882</link>
<pubDate>Sun, 25 Feb 2007 19:59:31 +0000</pubDate>
<dc:creator>marky</dc:creator>
<guid isPermaLink="false">4882@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Well, I've found the solution! Apparently, ModRewrite doesn't count the query string as part of the URL, so it needs to be addressed separately. These rules did the trick:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;RewriteEngine On
RewriteBase /forums/
RewriteCond %{QUERY_STRING} ^t\=([0-9]+)$
RewriteRule ^viewtopic.php$ /forums/topic/%1 [R,L]&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>marky on "Rewriting URLs"</title>
<link>http://bbpress.org/forums/topic/rewriting-urls#post-4805</link>
<pubDate>Fri, 23 Feb 2007 21:10:56 +0000</pubDate>
<dc:creator>marky</dc:creator>
<guid isPermaLink="false">4805@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Well, I'm still having trouble getting this working. Indeed, all I'd like to do is redirect existing links to the new topics; I don't want to change the permalink structure or anything else.&#60;/p&#62;
&#60;p&#62;I've tried escaping the dot and question mark, but it's still not rewriting the URL. I'm wondering, at this point, if ModRewrite can handle urls with parameters in them. I've tried some other quick tests (&#60;code&#62;RewriteRule ^/forums/blah.foo$ /forums/topic/1/&#60;/code&#62;) and it worked no problem, so ModRewrite isn't the problem itself.&#60;/p&#62;
&#60;p&#62;Any other suggestions?
&#60;/p&#62;</description>
</item>
<item>
<title>Mirce on "Rewriting URLs"</title>
<link>http://bbpress.org/forums/topic/rewriting-urls#post-4791</link>
<pubDate>Fri, 23 Feb 2007 12:26:00 +0000</pubDate>
<dc:creator>Mirce</dc:creator>
<guid isPermaLink="false">4791@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Yes, that's what I was thinking of.&#60;br /&#62;
Sam, did you finished your permalinks script. I am stuck with mine because I do not know how to create the mod_rewrite rules for this kind of page:&#60;br /&#62;
&#60;a href=&#34;http://www.dfur.com/designer_furniture/topic5&#34; rel=&#34;nofollow&#34;&#62;http://www.dfur.com/designer_furniture/topic5&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;see  page 2&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.dfur.com/designer_furniture/topic5/page/2&#34; rel=&#34;nofollow&#34;&#62;http://www.dfur.com/designer_furniture/topic5/page/2&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;My mod rewrite is throwing me back to the main cat.
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Rewriting URLs"</title>
<link>http://bbpress.org/forums/topic/rewriting-urls#post-4776</link>
<pubDate>Fri, 23 Feb 2007 01:30:28 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">4776@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;&#38;gt; &#60;em&#62;I do not think that the rewrite rule alone will do it. You also need to change the way the links are generated by bbPress.&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;Not if all he wants to do is redirect links inside his posts to the right topic. If he wanted to make all his links look like that within his installation there is definitely more he would have to do.
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Rewriting URLs"</title>
<link>http://bbpress.org/forums/topic/rewriting-urls#post-4775</link>
<pubDate>Fri, 23 Feb 2007 01:27:54 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">4775@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;&#60;em&#62;Escaping the dot and the dollar-sign&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;I meant, &#34;Escaping the dot and the question-mark&#34;
&#60;/p&#62;</description>
</item>
<item>
<title>Mirce on "Rewriting URLs"</title>
<link>http://bbpress.org/forums/topic/rewriting-urls#post-4727</link>
<pubDate>Wed, 21 Feb 2007 19:43:01 +0000</pubDate>
<dc:creator>Mirce</dc:creator>
<guid isPermaLink="false">4727@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I do not think that the rewrite rule alone will do it. You also need to change the way the links are generated by bbPress.
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Rewriting URLs"</title>
<link>http://bbpress.org/forums/topic/rewriting-urls#post-4705</link>
<pubDate>Wed, 21 Feb 2007 02:21:35 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">4705@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Try:&#60;/p&#62;
&#60;p&#62;RewriteRule ^/forums/viewtopic\.php\?t=([0-9]+)$&#60;br /&#62;
/forums/topic/$1 [R]&#60;/p&#62;
&#60;p&#62;Escaping the dot and the dollar-sign. You might also need to specify:&#60;/p&#62;
&#60;p&#62;RewriteBase /directory/path/where/forum/resides/&#60;/p&#62;
&#60;p&#62;Just after &#34;RewriteEngine on&#34;
&#60;/p&#62;</description>
</item>
<item>
<title>Mirce on "Rewriting URLs"</title>
<link>http://bbpress.org/forums/topic/rewriting-urls#post-4689</link>
<pubDate>Tue, 20 Feb 2007 15:57:45 +0000</pubDate>
<dc:creator>Mirce</dc:creator>
<guid isPermaLink="false">4689@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Marky,&#60;br /&#62;
I have the same issue. I want to switch from PHPBB to bbPress and keep the  internal links the same. You can try to adjust my plugin for this:&#60;br /&#62;
&#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;Depending on how the links are right now at PHPBB you may be able to do it.
&#60;/p&#62;</description>
</item>
<item>
<title>marky on "Rewriting URLs"</title>
<link>http://bbpress.org/forums/topic/rewriting-urls#post-4688</link>
<pubDate>Tue, 20 Feb 2007 15:51:59 +0000</pubDate>
<dc:creator>marky</dc:creator>
<guid isPermaLink="false">4688@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I switched from phpBB to bbPress recently thanks very much in part to a script found in these forums.&#60;/p&#62;
&#60;p&#62;Now, many of the existing posts contain links to each other in the old phpBB format /topic.php?t=123. Since the topic IDs have stayed the same in the conversion process, I'd like to use ModRewrite to automatically redirect to the new /topic/123 URL scheme. I've tried the following in my .htaccess, but it doesn't appear to work. (Admittedly, my knowledge of ModRewrite is shaky at best.)&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;RewriteEngine on
RewriteRule ^/forums/viewtopic.php?t=([0-9]+)$
/forums/topic/$1 [R]&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;(In the real code there isn't a linebreak on the second line.)&#60;br /&#62;
Does anyone have any advice?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
