title: How to remove index.php from the URL of MediaWiki?
body: <p>I used this tool <a href="http://shorturls.redwerks.org/" rel="nofollow noreferrer">http://shorturls.redwerks.org/</a> to rewrite a short url for MediaWiki.
  From this: <code>http://wikitest.org/fr/index.php/Accueil</code> to this: <code>http://wikitest.org/fr/wiki/Accueil</code>.</p>
  
  <p>Then I added this code to LocalSettings.php:</p>
  
  <pre><code>## The URL base path to the directory containing the wiki;
  ## defaults for all runtime URL paths are based off of this.
  ## For more information on customizing the URLs please see:
  ## http://www.mediawiki.org/wiki/Manual:Short_URL
  $wgScriptPath = "/fr";
  $wgScriptExtension = ".php";
  $wgArticlePath = "{$wgScriptPath}/wiki/$1";
  $wgUsePathInfo = true
  </code></pre>
  
  <p>But when I go to my site I get <strong><em>404 Not Found</strong>. The resource requested could not be found on this server!</em></p>