title: htaccess friendly url unexpected redirect
body: <p>I've been looking for a solution for a while but can't find it at all or understand why this happens, </p>
  
  <p>I'm using htaccess to have a better view of my links but for some reason this solution only works when there is no slash for example:</p>
  
  <p>Using the following htacces:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /
  
  RewriteRule ^doit/?$ my-doit.php [NC,L]
  
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>I can use www.mydomain.com/doit and this will work on the file my-doit.php, so far its working well, but if I add a slash like this www.mydomain.com/doit/ it will for some reason redirect me to www.mydomain.com/my-doit.php url and that cannot happen....</p>
  
  <p>Any ideas why does this happen?
  Yours,
  Diogo</p>