title: .htaccess RewriteRule adds drive path to URL
body: <p>I am using Zend Server CE (v.5.1.0) installed on C: on a Win7 machine. I have added one project to <em>httpd.conf</em> by adding:</p>
  
  <pre><code>Alias /project "D:\Homepages\project"
  &lt;Directory "D:\Homepages\project"&gt;
      Options Indexes FollowSymLinks
      AllowOverride all
      Order allow,deny
      Allow from all
  &lt;/Directory&gt;
  </code></pre>
  
  <p>My <em>.htaccess</em> file in the <em>project</em> directory contains the following:</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} -f
  RewriteCond %{REQUEST_URI} ^/\w*\.(css|js) [NC]
  RewriteRule ^.*$ - [NC,L]
  RewriteRule ^.*$ index.php [NC,L]
  </code></pre>
  
  <p>Now to the problem; if I go to</p>
  
  <blockquote>
    <p><a href="http://localhost/project/index.php" rel="nofollow">http://localhost/project/index.php</a></p>
  </blockquote>
  
  <p>everything seems to be working fine. I reach the <em>index.php</em> file and get my contents.
  However, if I go to any other page that would trigger the RewriteRule, it seems to be adding the directory path. FireFox outputs the following <strong>Not Found</strong> message:</p>
  
  <blockquote>
    <p>The requested URL /Homepages/project/index.php was not found on this server.</p>
  </blockquote>
  
  <p>I tried to find a similar question/answer here, but failed. Any idea?
  Ps. Me accepting of an answer might be delayed as I will be out for a while on an errand.</p>