title: 404 url not found when directory location moved (htaccess)
body: <p>I have this document root <code>/var/www/example</code> and then inside this directory I have a file <code>test.php</code>, and also my other project so the structure of the project looks like this </p>
  
  <p><strong>/var/www/example</strong></p>
  
  <pre><code>├── .htaccess (Obs)
  ├── classes  
  ├── config
  ├── controllers
  ├── public
  │   ├── admin
  │   │   └── index.php 
  │   ├── css
  │   ├── index.php
  │   └── js
  ├── test.php (Obs! not managed by .htaccess)
  └── views
  </code></pre>
  
  <p><strong>.htaccess</strong></p>
  
  <pre><code>Options +FollowSymLinks
  AddDefaultCharset UTF-8 
  RewriteEngine On
  
  RewriteCond %{SCRIPT_FILENAME} !-d
  RewriteCond %{SCRIPT_FILENAME} !-f
  
  RewriteRule ^admin[/]?$ /example/admin/login [redirect]
  RewriteRule ^admin/([a-zA-Z]+)/?([a-zA-Z0-9/]*)$ public/admin/index.php?page=$1&amp;query=$2 [L]
  RewriteRule ^([a-zA-Z]+)/?([a-zA-Z0-9/]*)$ public/index.php?page=$1&amp;query=$2 [L]
  </code></pre>
  
  <p>I recently moved the project from a MAMP server running on localhost to a domain-driven server. When I try my </p>
  
  <blockquote>
    <p>test.php</p>
  </blockquote>
  
  <p>file  it works and <code>echo "It works"</code> as intendended but when I try running my site it doesn´t . </p>
  
  <p><strong>error.log</strong></p>
  
  <pre><code> [Mon Jul 29 18:02:52 2013] [error] [client 83.248.93.217] script '/var/www/example/index.php' not found or unable to stat
   [Mon Jul 29 18:02:52 2013] [error] [client 83.248.93.217] File does not exist:     /var/www/favicon.ico
   [Mon Jul 29 18:03:02 2013] [error] [client 83.248.93.217] File does not exist: /var/www/example/bordsoversikt
   [Mon Jul 29 18:03:02 2013] [error] [client 83.248.93.217] File does not exist: /var/www/favicon.ico
  </code></pre>
  
  <p>My controller maps some of the sites by names to corresponding files like so</p>
  
  <p><strong>content of client_router</strong> all calls goes through index.php as <code>htaccess</code> and then to the router...</p>
  
  <pre><code>public function initialize_routes() {
  $this-&gt;routes = array(
      "bordsoversikt" =&gt; "page_table_overview",
      "bordsreservation" =&gt; "page_table_reservation",
      "reservationsprocess" =&gt; "script_reserve_form",
      "registrering" =&gt; "page_registration",
      "registreringsprocess" =&gt; "script_register_form",
      "lyckadregistrering" =&gt; "page_successfull_signup",
      "login" =&gt; "page_login",
      "logout" =&gt; "script_logout",
      "profil" =&gt; "page_home", 
      "klientlogin" =&gt; "script_login",
      "profil" =&gt; "page_profile",
      "sparaprofil" =&gt; "script_edit_profile_changes"
  );
  </code></pre>
  
  <p>I assume there could be something wrong either with my htaccess file, why i posted the contents, or there could be something wrong with my <code>apache2.config</code> file. But Im quite new on configuring apache so I wont try to post parts of it, as I probably would post the uncritical parts. Can somebody please help me. Thanks</p>