<?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: Url Rewriting Problem</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress support forums Topic: Url Rewriting Problem</description>
<language>en</language>
<pubDate>Tue, 02 Dec 2008 11:26:12 +0000</pubDate>

<item>
<title>Nightgunner5 on "Url Rewriting Problem"</title>
<link>http://bbpress.org/forums/topic/url-rewriting-problem#post-12815</link>
<pubDate>Thu, 20 Dec 2007 22:00:25 +0000</pubDate>
<dc:creator>Nightgunner5</dc:creator>
<guid isPermaLink="false">12815@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Yes, you would need to go into your .htaccess file, plus something to make sure topic links went there...  I'll look into it.&#60;/p&#62;
&#60;p&#62;Here it is:&#60;/p&#62;
&#60;p&#62;Go into your &#60;code&#62;bb-includes/template-functions.php&#60;/code&#62;.  Find the function called &#60;code&#62;get_topic_link&#60;/code&#62;, it should look like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function get_topic_link( $id = 0, $page = 1 ) {
	$topic = get_topic( get_topic_id( $id ) );

	$args = array();

	$rewrite = bb_get_option( &#38;#39;mod_rewrite&#38;#39; );
	if ( $rewrite ) {
		if ( $rewrite === &#38;#39;slugs&#38;#39; ) {
			$column = &#38;#39;topic_slug&#38;#39;;
		} else {
			$column = &#38;#39;topic_id&#38;#39;;
		}
		$link = bb_get_option(&#38;#39;uri&#38;#39;) . &#38;quot;topic/&#38;quot; . $topic-&#38;gt;$column . ( 1 &#38;lt; $page ? &#38;quot;/page/$page&#38;quot; : &#38;#39;&#38;#39; );
	} else {
		$link = bb_get_option(&#38;#39;uri&#38;#39;) . &#38;#39;topic.php&#38;#39;;
		$args[&#38;#39;id&#38;#39;] = $topic-&#38;gt;topic_id;
		$args[&#38;#39;page&#38;#39;] = 1 &#38;lt; $page ? $page : false;
	}

	if ( $args )
		$link = add_query_arg( $args, $link );

	return apply_filters( &#38;#39;get_topic_link&#38;#39;, $link, $topic-&#38;gt;topic_id );
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Change &#60;code&#62;&#38;#39;topic/&#38;#39;&#60;/code&#62; to &#60;code&#62;&#38;#39;konu/&#38;#39;&#60;/code&#62;.&#60;/p&#62;
&#60;p&#62;Now, go into your &#60;code&#62;.htaccess&#60;/code&#62; file.  If you're using &#60;code&#62;Options +MultiViews&#60;/code&#62;, I don't know how this will work, but if you're using &#60;code&#62;mod_rewrite&#60;/code&#62;, here's what to do:&#60;/p&#62;
&#60;p&#62;Find the lines that look like&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;RewriteRule ^topic/([^/]+)/page/([0-9]+)/?$ /[YOUR FORUM DIRECTORY]/topic.php?id=$1&#38;#38;page=$2 [L,QSA]
RewriteRule ^topic/([^/]+)/?$ /[YOUR FORUM DIRECTORY]/topic.php?id=$1 [L,QSA]&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and change them to&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;RewriteRule ^konu/([^/]+)/page/([0-9]+)/?$ /[YOUR FORUM DIRECTORY]/topic.php?id=$1&#38;#38;page=$2 [L,QSA]
RewriteRule ^konu/([^/]+)/?$ /[YOUR FORUM DIRECTORY]/topic.php?id=$1 [L,QSA]&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I think that's all you'll need to do...
&#60;/p&#62;</description>
</item>
<item>
<title>fikirbozan on "Url Rewriting Problem"</title>
<link>http://bbpress.org/forums/topic/url-rewriting-problem#post-12804</link>
<pubDate>Thu, 20 Dec 2007 14:17:08 +0000</pubDate>
<dc:creator>fikirbozan</dc:creator>
<guid isPermaLink="false">12804@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;instead of this can i change topic to konu ('konu' is translation of topic in Turkish )
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Url Rewriting Problem"</title>
<link>http://bbpress.org/forums/topic/url-rewriting-problem#post-12802</link>
<pubDate>Thu, 20 Dec 2007 14:07:10 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">12802@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;The short answer is that you can't.&#60;/p&#62;
&#60;p&#62;bbPress would have no way to tell whether it was searching for a topic or a forum.
&#60;/p&#62;</description>
</item>
<item>
<title>fikirbozan on "Url Rewriting Problem"</title>
<link>http://bbpress.org/forums/topic/url-rewriting-problem#post-12798</link>
<pubDate>Thu, 20 Dec 2007 12:19:47 +0000</pubDate>
<dc:creator>fikirbozan</dc:creator>
<guid isPermaLink="false">12798@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;How can we get rid of topic or forum in the permanent links&#60;/p&#62;
&#60;p&#62;My links like&#60;br /&#62;
&#60;a href=&#34;http://www.mysite.com/topic/wordpress-theme/&#34; rel=&#34;nofollow&#34;&#62;http://www.mysite.com/topic/wordpress-theme/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;But i want like&#60;br /&#62;
&#60;a href=&#34;http://www.mysite.com/wordpress-theme/&#34; rel=&#34;nofollow&#34;&#62;http://www.mysite.com/wordpress-theme/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;and&#60;br /&#62;
 my forums links&#60;br /&#62;
&#60;a href=&#34;http://www.mysite.com/forum/wordpress/&#34; rel=&#34;nofollow&#34;&#62;http://www.mysite.com/forum/wordpress/&#60;/a&#62;&#60;br /&#62;
but i want like&#60;br /&#62;
&#60;a href=&#34;http://www.mysite.com/wordpress/&#34; rel=&#34;nofollow&#34;&#62;http://www.mysite.com/wordpress/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;how can i do this
&#60;/p&#62;</description>
</item>

</channel>
</rss>
