title: .htaccess don't go to folder if slash on end
body: <p>I have site where</p>
  
  <p><code>site.com/index.php?page=test</code>  (include file <code>test.php</code> from <code>pages</code> folder into index.php)</p>
  
  <p>is replaced by <code>site.com/test</code></p>
  
  <h2>Goal:</h2>
  
  <p>If I go to <code>site.com/index.php?page=forum/new_enrty</code> </p>
  
  <p>I want ot make url <code>site.com/forum/new-entry</code></p>
  
  <h2>Problem:</h2>
  
  <p>if I open <code>site.com/forum/new-entry</code> it directs me to forum directory to new-entry file directly and not include new-entry into index.php</p>
  
  <h2>So far I got this:</h2>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      RewriteEngine on
      #RewriteBase /cms/
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} !-l
      RewriteRule ^ index.php [L]
  &lt;/IfModule&gt;
  </code></pre>