<?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: trick to make relative URLs instead of full URI</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress support forums Topic: trick to make relative URLs instead of full URI</description>
<language>en</language>
<pubDate>Tue, 02 Dec 2008 11:24:57 +0000</pubDate>

<item>
<title>_ck_ on "trick to make relative URLs instead of full URI"</title>
<link>http://bbpress.org/forums/topic/trick-to-make-relative-urls-instead-of-full-uri#post-17690</link>
<pubDate>Sat, 26 Jul 2008 23:12:27 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">17690@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;cordoval, there are several dozen bbPress sites on my top1000 list that use subdomains, hence I know it works. Please stop using this incorrect topic for the subject matter, thanks.
&#60;/p&#62;</description>
</item>
<item>
<title>cordoval on "trick to make relative URLs instead of full URI"</title>
<link>http://bbpress.org/forums/topic/trick-to-make-relative-urls-instead-of-full-uri#post-17687</link>
<pubDate>Sat, 26 Jul 2008 18:47:32 +0000</pubDate>
<dc:creator>cordoval</dc:creator>
<guid isPermaLink="false">17687@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Have you installed it on a subdomain yourself?&#60;br /&#62;
I examined the parsing functions and the uri how it is stored in the database. However, I was reluctant that it would not work, I tried but did not work, but partly was because I was changing domain settings on a website.&#60;/p&#62;
&#60;p&#62;Also regarding the uri modifications that I really meant to convey was that I needed to change the uri for a forum that I was moving on my site. I ended up ultimately finding out how to do this. It is actually in the database itself and under user_metatopics or something similar, you just export your database and do a search for uri in the file and you will see what I mean. &#60;/p&#62;
&#60;p&#62;Encouragements, maybe I can try the subdomain install after you confirm me via email preferred.&#60;/p&#62;
&#60;p&#62;Thanks,
&#60;/p&#62;</description>
</item>
<item>
<title>_ck_ on "trick to make relative URLs instead of full URI"</title>
<link>http://bbpress.org/forums/topic/trick-to-make-relative-urls-instead-of-full-uri#post-17664</link>
<pubDate>Sat, 26 Jul 2008 01:38:48 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">17664@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;This topic has nothing to do with subdomains, but you can definitely install bbpress on a subdomain. Just enter the appropriate info during setup.
&#60;/p&#62;</description>
</item>
<item>
<title>cordoval on "trick to make relative URLs instead of full URI"</title>
<link>http://bbpress.org/forums/topic/trick-to-make-relative-urls-instead-of-full-uri#post-17663</link>
<pubDate>Sat, 26 Jul 2008 01:18:07 +0000</pubDate>
<dc:creator>cordoval</dc:creator>
<guid isPermaLink="false">17663@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Can I install bbpress on a subdomain? Is this possible?&#60;br /&#62;
Please contact me to &#60;a href=&#34;mailto:cordoval@gmail.com&#34;&#62;cordoval@gmail.com&#60;/a&#62;&#60;br /&#62;
Encouragements,
&#60;/p&#62;</description>
</item>
<item>
<title>_ck_ on "trick to make relative URLs instead of full URI"</title>
<link>http://bbpress.org/forums/topic/trick-to-make-relative-urls-instead-of-full-uri#post-15062</link>
<pubDate>Sat, 05 Apr 2008 15:50:55 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">15062@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;It was really bothering me how a page full of links was wasting so many bytes on full absolute URI's with the domain name, etc. when all it needed was a tidy relative URL.  The front page alone is 4k bigger just because of all the full URIs on the tag cloud and views, etc.&#60;/p&#62;
&#60;p&#62;ie.   &#60;a href=&#34;http://www.bbpress.org/forums/forum/plugins&#34; rel=&#34;nofollow&#34;&#62;http://www.bbpress.org/forums/forum/plugins&#60;/a&#62;&#60;br /&#62;
vs.  /forums/forum/plugins&#60;br /&#62;
(multiply that by a few hundred)&#60;/p&#62;
&#60;p&#62;So it dawned on me just now that it's fairly easy using filters to make all the urls relative. Just for safety, we don't kick in the relative URLs until bbPress has gotten past the header section of the template. This makes sure that redirects, stylesheets, and javascript is handled properly.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function bb_relative_uri($r) {return &#38;quot;/forums/&#38;quot;; }	// change forums to your path
function bb_relative_domain($r) {return &#38;quot;&#38;quot;; }
function bb_relative() {
add_filter( &#38;#39;bb_get_option_domain&#38;#39;,&#38;#39;bb_relative_domain&#38;#39;,255);
add_filter( &#38;#39;bb_get_option_uri&#38;#39;,&#38;#39;bb_relative_uri&#38;#39;,255);
} add_action(&#38;#39;bb_head&#38;#39;, &#38;#39;bb_relative&#38;#39;,255);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;.&#60;br /&#62;
In some cases, relative URLs actually makes Internet Explorer cache better so this may be helpful for subtle speedups too.&#60;/p&#62;
&#60;p&#62;I haven't discovered anything broken by this yet but be sure to let me know if you run into anything.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
