Apache 2.4.10 with mod_rewrite returns '404 Not Found'
<p>I'm locally developing a web service on Apache 2.4.10 (Debian).<br>
I'd like to use the URLs as something like this one: <a href="http://localhost/ws/rest/users" rel="nofollow">http://localhost/ws/rest/users</a><br>
where the /ws/rest are physical directories and users is a parameter.</p>

<p>I wrote the following /var/www/html/ws/rest/.htaccess file:</p>

<pre><code>&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-s
RewriteRule ^(.*)$ ws/rest/api.php?rquest=$1 [QSA,NC,L]

RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.*)$ ws/rest/api.php [QSA,NC,L]
RewriteCond %{REQUEST_FILENAME} -s
RewriteRule ^(.*)$ ws/rest/api.php [QSA,NC,L]   
&lt;/IfModule&gt;
</code></pre>

<p>The idea is redirect all the inner paths to the api.php file but when i point the browser to the previous URL i always receive '404 Not found' error.  </p>

<p>Where is the problem?</p>