title: .htaccess several rewrites and one by default
body: <p>Hi there I have a problem with my htaccess file, I want to redirect the calls to different files and if the call does not match redirect by default to index.php</p>
  
  <p>this is my htaccess:</p>
  
  <pre><code>Options +FollowSymLinks +ExecCGI
  &lt;IfModule mod_rewrite.c&gt;
    RewriteEngine on
    RewriteBase /public
    RewriteCond %{REQUEST_FILENAME} !-f
  
    RewriteRule ^callOne(|/.*)$ callOnephp?q=$1 [L,QSA]
    RewriteRule ^callTwo(|/.*)$ callTwo.php?q=$1 [L,QSA]
  
    RewriteRule ^(.*)$ index.php [L,QSA]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>So, if the call is made to /callOne the file named callOne.php will respond but if not the call will be answered by index.php. As well if the call is made to callTwo the file named callTwo.php will respond, if not the index.php will respond by default.</p>
  
  <p>Currently the calls are always answered by index.php. How can I fix this?</p>
  
  <p>Thanks in advance!</p>