title: can I redirect different home directories according to urls?
body: <p>I have 2 codeignitor projects in different directories.</p>
  <p>what I want to do is</p>
  <pre><code>www.url.com =&gt; /var/www/ci_project
  www.url.com/page1 =&gt; /var/www/ci_project
  
  www.url.com/en =&gt; /home/another/ci_project
  www.url.com/en/page1 =&gt; /home/another/ci_project
  </code></pre>
  <p>That is, only if the &quot;en/&quot; come followed host we would use different ci project.</p>
  <p>However, it seems the apache alias cannot help because the ci mechanism would cover the path.</p>
  <p>Can I achieve this by apache2 or nginx?</p>