title: Magento, redirect URLs with index.php to URLs without it
body: <p>I am setting up a Magento website which is not inside of any sub-directory such as <code>/shop</code>. </p>
  
  <p>Before every URL on the website had the <code>index.php</code> append next to the domain name, for e.g the admin panel was <code>example.com/index.php/admin</code>. </p>
  
  <p>I enabled Mod_rewrite in Magento's admin panel and added an <code>.htaccess</code> file with the following to make sure that <code>example.com/admin</code> actually goes to the admin panel and so on. It does work. </p>
  
  <p>Here's the <code>htaccess</code> configuration:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>The problem is that when I manually type <code>example.com/index.php/admin</code> it takes me to the admin panel as expected but the URL stays that, I expected it to redirect to the right URL which is <code>example.com/admin</code> but I am not able to. </p>
  
  <p>Do I have to add any configurations to the <code>htaccess</code> or is it Magento related?</p>