title: redirect index.php to base url
body: <p>I have added a rule in .htaccess</p>
  
  <pre><code>RewriteRule ^index\.php/(.*)$ /$1 [L,R=301]
  RewriteRule ^ index.php [L]
  </code></pre>
  
  <p>By this the url doesn't contains index.php</p>
  
  <p>But whenever I am going specifically to /index.php, I want to redirect to .  But then it results into too_many redirects.</p>
  
  <p>The below code seems not to work</p>
  
  <pre><code>RewriteRule ^index\.php$ - [L]
  </code></pre>
  
  <p>..</p>
  
  <p>How I can achieve the same in the apache rules.</p>