title: htaccess redirect if URI contains string to index.php
body: <p>I would like to redirect link <a href="http://example.com/asdasdas/edit" rel="nofollow">http://example.com/asdasdas/edit</a> to <a href="http://example.com/asdasdas/index.php/edit" rel="nofollow">http://example.com/asdasdas/index.php/edit</a> using htaccess. I did this: </p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_URI} edit
  RewriteRule ^ %{REQUEST_URI}/index.php [L,R=301]
  </code></pre>
  
  <p>but it's a loop and doesn't works well. Any ideas? </p>