<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
  <title>aC forum: /public Folder as Document Root + Clean URL</title>
  <link>http://www.activecollab.com/forums/topic/5810/</link>
  <description>Recent posts on topic: /public Folder as Document Root + Clean URL</description>
  <dc:language>en-us</dc:language>
  <pubDate>Thu, 24 May 2012 08:18:24 CDT</pubDate>
  
  <item>
    <link>http://www.activecollab.com/forums/post/27622/#post27622</link>
    <guid>http://www.activecollab.com/forums/post/27622/#post27622</guid>
    <title>Post #9 by Ilija Studen</title>
    <dc:creator>Ilija Studen</dc:creator>
    <description><![CDATA[<p>Hello,<br />
<br />
Sorry, this has not been covered in activeCollab 2.3.2. <br />
<br />
v2.3.2 was pushed a bit sooner than usual because of a couple of important issues that had to be covered ASAP. That's why some of the least important bug fixes that were planned for v2.3.2 were not included in it.</p>]]></description>
    <pubDate>Sun, 29 Aug 2010 15:30:26 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/27615/#post27615</link>
    <guid>http://www.activecollab.com/forums/post/27615/#post27615</guid>
    <title>Post #8 by Martin Kong</title>
    <dc:creator>Martin Kong</dc:creator>
    <description><![CDATA[<p>This doesn't seem to have been fixed in 2.3.2 yet.  Please confirm when this will be fixed.  Thanks!</p>]]></description>
    <pubDate>Sat, 28 Aug 2010 03:47:04 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/26790/#post26790</link>
    <guid>http://www.activecollab.com/forums/post/26790/#post26790</guid>
    <title>Post #7 by Ilija Studen</title>
    <dc:creator>Ilija Studen</dc:creator>
    <description><![CDATA[<p>Hello Martin,<br />
<br />
Sorry, fix for this issue was not included in activeCollab 2.3.1. We'll have it covered in the next bug fix release.</p>]]></description>
    <pubDate>Mon, 28 Jun 2010 05:24:36 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/26780/#post26780</link>
    <guid>http://www.activecollab.com/forums/post/26780/#post26780</guid>
    <title>Post #6 by Martin Kong</title>
    <dc:creator>Martin Kong</dc:creator>
    <description><![CDATA[<p>Has this been fixed in 2.3.1?</p>]]></description>
    <pubDate>Sun, 27 Jun 2010 02:02:00 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/25587/#post25587</link>
    <guid>http://www.activecollab.com/forums/post/25587/#post25587</guid>
    <title>Post #5 by Ilija Studen</title>
    <dc:creator>Ilija Studen</dc:creator>
    <description><![CDATA[<p>No need. We'll check it out and update documentation and files accordingly when we get to it.</p>]]></description>
    <pubDate>Mon, 29 Mar 2010 10:23:04 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/25585/#post25585</link>
    <guid>http://www.activecollab.com/forums/post/25585/#post25585</guid>
    <title>Post #4 by Martin Kong</title>
    <dc:creator>Martin Kong</dc:creator>
    <description><![CDATA[<p>Should I submit an official request about this?</p>]]></description>
    <pubDate>Mon, 29 Mar 2010 04:31:29 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/25495/#post25495</link>
    <guid>http://www.activecollab.com/forums/post/25495/#post25495</guid>
    <title>Post #3 by Martin Kong</title>
    <dc:creator>Martin Kong</dc:creator>
    <description><![CDATA[<p>Yes, I did everything by the book.  I did the &quot;/public Folder as Document Root&quot; first and it worked fine.  Then I did the clean URL configuration change.  Now the brand/logo.gif is not referenced correctly.<br />
<br />
Actually, if you like at function.brand.php, you can easily spot the error:<br />
<br />
<pre name="code" class="brush: php">
case 'logo':
  return URL_BASE == ROOT_URL . '/' ? ROOT_URL . '/public/brand/logo.gif' : ROOT_URL . '/brand/logo.gif';
</pre><br />
<br />
As you can see, if URL_BASE == ROOT_URL . '/', then ROOT_URL . '/public/brand/logo.gif' is returned.  Which is wrong.</p>]]></description>
    <pubDate>Wed, 24 Mar 2010 12:09:27 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/25491/#post25491</link>
    <guid>http://www.activecollab.com/forums/post/25491/#post25491</guid>
    <title>Post #2 by Ilija Studen</title>
    <dc:creator>Ilija Studen</dc:creator>
    <description><![CDATA[<p>As far as I remember, this should work properly. Did you follow <a href="http://www.activecollab.com/docs/manuals/admin/tweak/public-document-root" target="_blank" rel="nofollow">these instructions</a>?</p>]]></description>
    <pubDate>Wed, 24 Mar 2010 09:21:22 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/25488/#post25488</link>
    <guid>http://www.activecollab.com/forums/post/25488/#post25488</guid>
    <title>Post #1 by Martin Kong</title>
    <dc:creator>Martin Kong</dc:creator>
    <description><![CDATA[<p>AC is configured with /public as document root.  Now I'm tweaking it to serve clean URL.  I have done:<br />
<br />
1) .htaccess in the public directory (btw, +FollowSymlinks should be added to the online document)<br />
<br />
<pre name="code" class="brush: php">Options -Indexes +FollowSymLinks
&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On

  RewriteCond %{REQUEST_FILENAME} -f [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^(.+) - [PT,L]

  RewriteRule ^projects_icons/(.*)$ projects_icons/$1 [L]
  RewriteRule ^avatars/(.*)$ avatars/$1 [L]
  RewriteRule ^logos/(.*)$ logos/$1 [L]
  RewriteRule ^thumb.php$ thumb.php [L]
  RewriteRule ^captcha.php$ captcha.php [L]
  RewriteRule ^$ index.php [L]
  RewriteRule ^(.*) index.php?path_info=$1 [L]
&lt;/IfModule&gt;</pre><br />
<br />
2) made necessary changes to config/config.php<br />
<br />
<pre name="code" class="brush: php">define('ROOT_URL', 'http://ac.domain.com');
define('URL_BASE', ROOT_URL . '/');
define('ASSETS_URL', ROOT_URL . '/assets');
//define('PATH_INFO_THROUGH_QUERY_STRING', true);</pre><br />
<br />
Everything seems ok, at least I can log in.  So far there is one problem, the brand/logo.gif is broken.  It is being referenced as http://ac.domain.com/public/brand/logo.gif.  Seems to be a problem with function.brand.php.<br />
<br />
I want to avoid changing function.brand.php directly.  What's the proper fix for this?</p>]]></description>
    <pubDate>Wed, 24 Mar 2010 04:30:15 CDT</pubDate>
  </item>
</channel>
</rss>
