<?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 Slugs Modification - removing forum</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress support forums Topic: Permalinks Slugs Modification - removing forum</description>
<language>en</language>
<pubDate>Sun, 07 Sep 2008 20:30:57 +0000</pubDate>

<item>
<title>mrhoratio on "Permalinks Slugs Modification - removing forum"</title>
<link>http://bbpress.org/forums/topic/permalinks-slugs-modification-removing-forum#post-16041</link>
<pubDate>Wed, 07 May 2008 21:28:59 +0000</pubDate>
<dc:creator>mrhoratio</dc:creator>
<guid isPermaLink="false">16041@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Chris, you have a point. However the URL structure of forums and topics always begin with &#34;forum&#34; or &#34;topic&#34;. As in:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;a href=&#34;http://www.example.com/bbpress/forum/pets-discussions/&#34; rel=&#34;nofollow&#34;&#62;http://www.example.com/bbpress/forum/pets-discussions/&#60;/a&#62;&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;&#60;a href=&#34;http://www.example.com/bbpress/topic/my-sweet-dog&#34; rel=&#34;nofollow&#34;&#62;http://www.example.com/bbpress/topic/my-sweet-dog&#60;/a&#62;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;So it would seem that it should be possible to remove the &#34;bbpress&#34; from the URL without interfering with a Wordpress installation.&#60;/p&#62;
&#60;p&#62;Having said that, I think the solution proposed in the thread I referred to in my last post (http://bbpress.org/forums/topic/nicer-slug-url-rewrite-plugin-done) is a much more elegant solution for shortening the bbPress URLs.
&#60;/p&#62;</description>
</item>
<item>
<title>chrishajer on "Permalinks Slugs Modification - removing forum"</title>
<link>http://bbpress.org/forums/topic/permalinks-slugs-modification-removing-forum#post-16040</link>
<pubDate>Wed, 07 May 2008 21:20:37 +0000</pubDate>
<dc:creator>chrishajer</dc:creator>
<guid isPermaLink="false">16040@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;It could work like that I think if there were no website (like WordPress) in the www root.  Otherwise, how does the server know it's a bbPress page vs. a WordPress page?&#60;/p&#62;
&#60;p&#62;If you are running a forum only on a domain, then it would be silly to have it in any sort of directory at all.  Otherwise, if you have a website in the root, you have to put bbPress into some sort of directory to prevent confusion.
&#60;/p&#62;</description>
</item>
<item>
<title>mrhoratio on "Permalinks Slugs Modification - removing forum"</title>
<link>http://bbpress.org/forums/topic/permalinks-slugs-modification-removing-forum#post-16038</link>
<pubDate>Wed, 07 May 2008 20:55:09 +0000</pubDate>
<dc:creator>mrhoratio</dc:creator>
<guid isPermaLink="false">16038@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Just found an earlier thread which hits on a similar problem with shortening the bbPress URL:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://bbpress.org/forums/topic/nicer-slug-url-rewrite-plugin-done&#34; rel=&#34;nofollow&#34;&#62;http://bbpress.org/forums/topic/nicer-slug-url-rewrite-plugin-done&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;In the thread's example. In shows you how to shorten a url like:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;a href=&#34;http://www.example.com/bbpress/forum/pets-discussions/topic/my-sweet-dog&#34; rel=&#34;nofollow&#34;&#62;http://www.example.com/bbpress/forum/pets-discussions/topic/my-sweet-dog&#60;/a&#62;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;to: &#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;a href=&#34;http://www.example.com/bbpress/pets-discussions/my-sweet-dog&#34; rel=&#34;nofollow&#34;&#62;http://www.example.com/bbpress/pets-discussions/my-sweet-dog&#60;/a&#62;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Now, if it could also be shortened to:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;a href=&#34;http://www.example.com/pets-discussions/my-sweet-dog&#34; rel=&#34;nofollow&#34;&#62;http://www.example.com/pets-discussions/my-sweet-dog&#60;/a&#62;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;That would be even better.
&#60;/p&#62;</description>
</item>
<item>
<title>mrhoratio on "Permalinks Slugs Modification - removing forum"</title>
<link>http://bbpress.org/forums/topic/permalinks-slugs-modification-removing-forum#post-16034</link>
<pubDate>Wed, 07 May 2008 19:52:04 +0000</pubDate>
<dc:creator>mrhoratio</dc:creator>
<guid isPermaLink="false">16034@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Hi Bobby, yes I added those lines to the .htaccess file as well. It didn't seem to fix the problem. So I tried adding it to rewrite-rules.php also.
&#60;/p&#62;</description>
</item>
<item>
<title>bobbyh on "Permalinks Slugs Modification - removing forum"</title>
<link>http://bbpress.org/forums/topic/permalinks-slugs-modification-removing-forum#post-16030</link>
<pubDate>Wed, 07 May 2008 17:58:32 +0000</pubDate>
<dc:creator>bobbyh</dc:creator>
<guid isPermaLink="false">16030@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;You said: &#34;I also tried adding this to the rewrite-rules.php&#34;. That's unnecessary.  You just need to add those lines to your htaccess file, which should contain the contents of the page located at &#60;a href=&#34;http://www.lifeclever.com/forums/bb-admin/rewrite-rules.php.&#34; rel=&#34;nofollow&#34;&#62;http://www.lifeclever.com/forums/bb-admin/rewrite-rules.php.&#60;/a&#62; Did you add those lines to your htaccess file?
&#60;/p&#62;</description>
</item>
<item>
<title>mrhoratio on "Permalinks Slugs Modification - removing forum"</title>
<link>http://bbpress.org/forums/topic/permalinks-slugs-modification-removing-forum#post-16029</link>
<pubDate>Wed, 07 May 2008 17:52:22 +0000</pubDate>
<dc:creator>mrhoratio</dc:creator>
<guid isPermaLink="false">16029@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Hey bobby, here it is here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.lifeclever.com/forums/&#34; rel=&#34;nofollow&#34;&#62;http://www.lifeclever.com/forums/&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>bobbyh on "Permalinks Slugs Modification - removing forum"</title>
<link>http://bbpress.org/forums/topic/permalinks-slugs-modification-removing-forum#post-16028</link>
<pubDate>Wed, 07 May 2008 17:51:07 +0000</pubDate>
<dc:creator>bobbyh</dc:creator>
<guid isPermaLink="false">16028@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Can you post a link to your site?
&#60;/p&#62;</description>
</item>
<item>
<title>mrhoratio on "Permalinks Slugs Modification - removing forum"</title>
<link>http://bbpress.org/forums/topic/permalinks-slugs-modification-removing-forum#post-16027</link>
<pubDate>Wed, 07 May 2008 17:31:54 +0000</pubDate>
<dc:creator>mrhoratio</dc:creator>
<guid isPermaLink="false">16027@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Hi bobby, I tried out your hack in bbPress 0.9, and it doesn't seem to work. Here's what I did:&#60;/p&#62;
&#60;p&#62;I have my bbPress directory installed in a directory called &#34;forums&#34; in the root web directory. So the URL to access the forums' home page is:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;a href=&#34;http://www.example.com/forums&#34; rel=&#34;nofollow&#34;&#62;http://www.example.com/forums&#60;/a&#62;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;and accessing a forum titled &#34;test forum&#34; is at this URL:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;a href=&#34;http://www.example.com/forums/forum/test-forum&#34; rel=&#34;nofollow&#34;&#62;http://www.example.com/forums/forum/test-forum&#60;/a&#62;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;a topic titled &#34;test topic&#34; is at this URL:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;a href=&#34;http://www.example.com/forums/topic/test-forum&#34; rel=&#34;nofollow&#34;&#62;http://www.example.com/forums/topic/test-forum&#60;/a&#62;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I implemented your hack, and changed &#34;forum&#34; to &#34;board&#34; in the template-functions.php. I copied the rewrite rules from rewrite-rules.php and placed them into .htaccess file in the root web directory. I also added the two lines of code you suggested in that file:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;RewriteRule ^board/(.+)/page/([0-9]+)$ /forum.php?id=$1&#38;#38;page=$2 [L,QSA]
RewriteRule ^board/(.+)/?$ /forum.php?id=$1 [L,QSA]&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I also tried adding this to the rewrite-rules.php:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;RewriteRule ^board/([^/]+)/page/([0-9]+)/?$ &#38;lt;?php bb_option( &#38;#39;path&#38;#39; ); ?&#38;gt;topic.php?id=$1&#38;#38;page=$2 [L,QSA]
RewriteRule ^board/([^/]+)/?$ &#38;lt;?php bb_option( &#38;#39;path&#38;#39; ); ?&#38;gt;topic.php?id=$1 [L,QSA]&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;When I go to this URL: &#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;a href=&#34;http://www.example.com/board/test-forum&#34; rel=&#34;nofollow&#34;&#62;http://www.example.com/board/test-forum&#60;/a&#62;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I get a 404 error.&#60;/p&#62;
&#60;p&#62;However, when I go to this url:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;a href=&#34;http://www.example.com/forums/forum/test-forum/&#34; rel=&#34;nofollow&#34;&#62;http://www.example.com/forums/forum/test-forum/&#60;/a&#62;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;It redirects and changes the URL in the address bar in the browser window changes:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;a href=&#34;http://www.example.com/forums/board/test-forum/&#34; rel=&#34;nofollow&#34;&#62;http://www.example.com/forums/board/test-forum/&#60;/a&#62;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;That also brings up a 404 page.&#60;/p&#62;
&#60;p&#62;Also, when I go this URL:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;a href=&#34;http://www.example.com/topic/test-topic&#34; rel=&#34;nofollow&#34;&#62;http://www.example.com/topic/test-topic&#60;/a&#62;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;The URL works, but it redirects and changes the URL in the address bar in the browser window changes to:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;a href=&#34;http://www.example.com/forums/topic/test-forum&#34; rel=&#34;nofollow&#34;&#62;http://www.example.com/forums/topic/test-forum&#60;/a&#62;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I am a little perplexed as to what is going on.
&#60;/p&#62;</description>
</item>
<item>
<title>bobbyh on "Permalinks Slugs Modification - removing forum"</title>
<link>http://bbpress.org/forums/topic/permalinks-slugs-modification-removing-forum#post-16025</link>
<pubDate>Wed, 07 May 2008 17:03:49 +0000</pubDate>
<dc:creator>bobbyh</dc:creator>
<guid isPermaLink="false">16025@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I wanted the forum-specific URLs to look like this:&#60;/p&#62;
&#60;p&#62;* &#60;a href=&#34;http://boards.weddingbee.com/board/beehive&#34; rel=&#34;nofollow&#34;&#62;http://boards.weddingbee.com/board/beehive&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;If you make the right edits to that core file and an htaccess file, I think the URL can be anything you want...
&#60;/p&#62;</description>
</item>
<item>
<title>mrhoratio on "Permalinks Slugs Modification - removing forum"</title>
<link>http://bbpress.org/forums/topic/permalinks-slugs-modification-removing-forum#post-16024</link>
<pubDate>Wed, 07 May 2008 17:01:25 +0000</pubDate>
<dc:creator>mrhoratio</dc:creator>
<guid isPermaLink="false">16024@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Hey bobby, just curious. Why did you have to change the second &#34;forum&#34; to &#34;board&#34;? Is there anyway to just leave it as &#34;forum&#34;?
&#60;/p&#62;</description>
</item>
<item>
<title>bobbyh on "Permalinks Slugs Modification - removing forum"</title>
<link>http://bbpress.org/forums/topic/permalinks-slugs-modification-removing-forum#post-16020</link>
<pubDate>Wed, 07 May 2008 09:19:42 +0000</pubDate>
<dc:creator>bobbyh</dc:creator>
<guid isPermaLink="false">16020@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I did something similar, but it required a core hack. I renamed the second &#34;forum&#34; to &#34;board&#34;. It required two steps:&#60;/p&#62;
&#60;p&#62;1. With version 0.8.3, I modified line 363 of /bb-includes/template-functions.php to this:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$link = bb_get_option( &#38;#39;uri&#38;#39; ) . &#38;quot;board/&#38;quot; . $forum-&#38;gt;$column . ( 1 &#38;lt; $page ? &#38;quot;/page/$page&#38;quot; : &#38;#39;&#38;#39; );&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;2. I created an htaccess file by copying the text from /bb-admin/rewrite-rules.php, with two extra lines:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;RewriteRule ^board/(.+)/page/([0-9]+)$ /forum.php?id=$1&#38;#38;page=$2 [L,QSA]
RewriteRule ^board/(.+)/?$ /forum.php?id=$1 [L,QSA]&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>mrhoratio on "Permalinks Slugs Modification - removing forum"</title>
<link>http://bbpress.org/forums/topic/permalinks-slugs-modification-removing-forum#post-16017</link>
<pubDate>Wed, 07 May 2008 03:26:48 +0000</pubDate>
<dc:creator>mrhoratio</dc:creator>
<guid isPermaLink="false">16017@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Hey, I'm trying to figure this out also. Anyone figured out a way to remove the first &#34;forum&#34; in &#60;a href=&#34;http://www.example.com/forum/forum/forum-name.&#34; rel=&#34;nofollow&#34;&#62;www.example.com/forum/forum/forum-name.&#60;/a&#62; So that the URL is shorter? I tried doing it with mod_rewrite, but having some issues with bbPress automatically redirecting.
&#60;/p&#62;</description>
</item>
<item>
<title>noelgreen on "Permalinks Slugs Modification - removing forum"</title>
<link>http://bbpress.org/forums/topic/permalinks-slugs-modification-removing-forum#post-10851</link>
<pubDate>Fri, 07 Sep 2007 17:35:04 +0000</pubDate>
<dc:creator>noelgreen</dc:creator>
<guid isPermaLink="false">10851@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;There has got to be a fairly easy way to remove the &#34;forums/&#34; slug from the URL... anyone know how yet?
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Permalinks Slugs Modification - removing forum"</title>
<link>http://bbpress.org/forums/topic/permalinks-slugs-modification-removing-forum#post-6351</link>
<pubDate>Tue, 03 Apr 2007 23:42:24 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">6351@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;&#38;gt; Is the 'forum' the &#34;forum&#34; I want to remove?&#60;/p&#62;
&#60;p&#62;No. It's a little more complicated than that. In fact, that part you say needs to be hacked, needs to be left completely alone. Really, you are asking for a world of pain by attempting this. It took me hours to write and test the slugs support. Seriously, just rename your forum directory - it's not worth the hours you will spend.
&#60;/p&#62;</description>
</item>
<item>
<title>Mirce on "Permalinks Slugs Modification - removing forum"</title>
<link>http://bbpress.org/forums/topic/permalinks-slugs-modification-removing-forum#post-6348</link>
<pubDate>Tue, 03 Apr 2007 23:13:40 +0000</pubDate>
<dc:creator>Mirce</dc:creator>
<guid isPermaLink="false">6348@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Thanx for the response.&#60;br /&#62;
I tried to follow  how the links are made in functions.php. In bb_repermalink() the case 'forum-page' needs to be &#34;hacked&#34;&#60;/p&#62;
&#60;p&#62;$forum_id = bb_get_id_from_slug('forum', $permalink);&#60;/p&#62;
&#60;p&#62;Is the 'forum' the &#34;forum&#34; I want to remove?&#60;br /&#62;
Thanx.
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Permalinks Slugs Modification - removing forum"</title>
<link>http://bbpress.org/forums/topic/permalinks-slugs-modification-removing-forum#post-6341</link>
<pubDate>Tue, 03 Apr 2007 22:13:32 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">6341@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Without core hacks or writing your own plugin that hooks into the get_forum_link function and the bb_repermalink function it's not possible. Your .htaccess file may be correct, but the links generated on the forum won't work without changing the what those functions expect. I suggest you change the name of the subdirectory you are placing your forums in - that would be the path of least resistance..
&#60;/p&#62;</description>
</item>
<item>
<title>Mirce on "Permalinks Slugs Modification - removing forum"</title>
<link>http://bbpress.org/forums/topic/permalinks-slugs-modification-removing-forum#post-6336</link>
<pubDate>Tue, 03 Apr 2007 20:38:50 +0000</pubDate>
<dc:creator>Mirce</dc:creator>
<guid isPermaLink="false">6336@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I want to install bbPress permalinks slugs on &#60;a href=&#34;http://www.example.com/forum.&#34; rel=&#34;nofollow&#34;&#62;www.example.com/forum.&#60;/a&#62;  The forum will be hosted in &#60;a href=&#34;http://www.exmaple.com/forum/&#34; rel=&#34;nofollow&#34;&#62;www.exmaple.com/forum/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I am trying to remove the &#34;forum&#34; from the forum's url because the normal output its ugly.&#60;/p&#62;
&#60;p&#62;So from:&#60;br /&#62;
&#60;a href=&#34;http://www.example.com/forum/forum/forum-name&#34; rel=&#34;nofollow&#34;&#62;www.example.com/forum/forum/forum-name&#60;/a&#62;&#60;br /&#62;
to get&#60;br /&#62;
&#60;a href=&#34;http://www.example.com/forum/forum-name&#34; rel=&#34;nofollow&#34;&#62;www.example.com/forum/forum-name&#60;/a&#62; &#60;/p&#62;
&#60;p&#62;I've edited in /bb-includes/template-functions.php the $link from&#60;br /&#62;
$link = bb_get_option( 'uri' )  . &#34;forum/&#34; . $forum-&#38;gt;$column . ( 1 &#38;lt; $page ? &#34;/page/$page&#34; : '' );&#60;br /&#62;
to&#60;br /&#62;
$link = bb_get_option( 'uri' )  .  $forum-&#38;gt;$column . ( 1 &#38;lt; $page ? &#34;/page/$page&#34; : '' );&#60;br /&#62;
but I do not manage to make the new link to work for .httaccess. Is there a way to do it?&#60;/p&#62;
&#60;p&#62;Thanx.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
