title: Mod_rewrite trouble (easy?)
body: <p>I am attempting to work on a PHP website using Zend Studio.
  There are a ton of mod_rewrite rules in the .htaccess file.
  One of these rules is the following:</p>
  
  <pre><code>RewriteCond %{HTTP_HOST} ^mysite\.com
  RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=301]
  RewriteRule ^/?$ /fitch/index.php?cmd=homepage [NC,L,QSA]
  </code></pre>
  
  <p>I want to run this website on my local Apache-Zend server.
  I tried to create an additional rule below that one like this:</p>
  
  <pre><code>RewriteCond %{HTTP_HOST} ^localhost
  RewriteRule ^(.*)$ http://localhost/$1 [R=301]
  RewriteRule ^/?$ /fitch/index.php?cmd=homepage [NC,L,QSA]
  </code></pre>
  
  <p>I want to make it such that if the server is given the url <code>http://localhost/index.php</code> it redirects to <code>http://localhost/fitch/index.php?cmd=homepage</code></p>
  
  <p>But there seems to be some error because I cannot restart Apache with that in place.
  If anyone could help me out I would appreciate it!</p>