title: .htaccess file not found
body: <p>I got my website done by my friend it is up and running in the public server. I tried to run the same website on my internal server. But  apache says file not found. I figured out that the problem is in .htaccess file. This is my file</p>
  
  <pre><code>AddType text/x-component .htc
  #BEGIN WordPress
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
  &lt;/IfModule&gt;
  # END WordPress
  </code></pre>
  
  <p>and in my apache conf file I set </p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
  
  DocumentRoot /srv/www/
      &lt;Directory /&gt;
              Options FollowSymLinks
              AllowOverride All
      &lt;/Directory&gt;
  
      &lt;Directory /srv/www/&gt;
              Options Indexes FollowSymLinks MultiViews
              AllowOverride All
              Order Deny,Allow
              Deny from all
              Allow from 192.168.43.0/255.255.255.0 192.168.42.0/255.255.255.0
  &lt;Directory /srv/www/companies/test1/&gt;
              Options +Indexes +FollowSymLinks +MultiViews
              AllowOverride All
              Order Allow,Deny
              Deny from all
              Allow from 192.168.43.0/255.255.255.0 192.168.42.0/255.255.255.0
      &lt;/Directory&gt;
      &lt;/Virtualhost&gt;
  </code></pre>
  
  <p>error log says</p>
  
  <pre><code>[Fri Apr 11 16:57:33 2014] [error] [client 192.168.43.8] File does not exist:/srv/www/cms
  [Fri Apr 11 16:57:33 2014] [error] [client 192.168.43.19] File does not exist:/srv/www/products, referer: http://192.168.43.8/companies/
  </code></pre>
  
  <p>I guess htaccess is lokking for index.php in <strong>/srv/www/</strong> folder instead of <strong>/srv/www/companies/test1/</strong> folder. Any suggestion how to direct htaccess in correct location?</p>