title: access files outside public_html folder
body: <p>I want to make some folder out of root directory (<code>public_html</code>).
  I have shared server <code>linux</code> with follow directory.  </p>
  
  <ul>
  <li>/home/<code>mysite</code>
  <ul>
  <li>access-log </li>
  <li>etc </li>
  <li>mail </li>
  <li>public_ftp </li>
  <li><code>public_html</code> </li>
  <li><code>tmp</code> </li>
  <li><code>www</code></li>
  </ul></li>
  </ul>
  
  <p>and my site directory in my computer(<code>wamp</code>):</p>
  
  <ul>
  <li>app
  <ul>
  <li>model</li>
  <li>controller</li>
  <li>view</li>
  </ul></li>
  <li>config </li>
  <li>public
  <ul>
  <li>images</li>
  <li><code>css</code></li>
  <li><code>js</code></li>
  <li><code>index.php</code></li>
  </ul></li>
  <li><code>htaccess</code></li>
  </ul>
  
  <p>I want public folder to be placed into <code>public_html</code> folder in server.
  1)how can I include my code using relative paths?</p>
  
  <p>and I have <code>htaccess</code> file that points all requests to that <code>public/index.php</code> in my computer.</p>
  
  <p>2)Where should I put my <code>htaccess</code> in my Shared server <code>linux</code>?</p>
  
  <p>my <code>htaccess</code> file:</p>
  
  <pre><code>RewriteCond %{REQUEST_FILENAME} -f [OR]
  RewriteCond %{REQUEST_FILENAME} -s [OR]
  RewriteCond %{REQUEST_FILENAME} -l [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^.*$ - [NC,L]
  RewriteRule ^.*$ index.php [NC,L]
  </code></pre>