title: .htaccess RewriteRule api/v1/(.*)$ api/v1/api.php?request=$1 [QSA,NC,L] not working
body: <p>I want <a href="http://localhost/api/v1/example" rel="nofollow">http://localhost/api/v1/example</a> to redirect to <a href="http://localhost/api/v1/api.php?request=example" rel="nofollow">http://localhost/api/v1/api.php?request=example</a></p>
  
  <p>I have the following .htaccess but it's not working:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      RewriteEngine On
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule api/v1/(.*)$ api/v1/api.php?request=$1 [QSA,NC,L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>I am using Server: Apache/2.4.9 (Unix) PHP/5.5.14 on Mac Yosemite. I have uncommented the LoadModule for mod_rewrite and set AllowOverride to All:</p>
  
  <pre><code>DocumentRoot "/Library/WebServer/Documents"
  &lt;Directory "/Library/WebServer/Documents"&gt;
      #
      # Possible values for the Options directive are "None", "All",
      # or any combination of:
      #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
      #
      # Note that "MultiViews" must be named *explicitly* --- "Options All"
      # doesn't give it to you.
      #
      # The Options directive is both complicated and important.  Please see
      # http://httpd.apache.org/docs/2.4/mod/core.html#options
      # for more information.
      #
      Options FollowSymLinks Multiviews
      MultiviewsMatch Any
  
      #
      # AllowOverride controls what directives may be placed in .htaccess files.
      # It can be "All", "None", or any combination of the keywords:
      #   AllowOverride FileInfo AuthConfig Limit
      #
      AllowOverride All
  
      #
      # Controls who can get stuff from this server.
      #
      Require all granted
  &lt;/Directory&gt;
  </code></pre>
  
  <p>Any help would be appreciated!</p>