...
$wgScriptPath = "/index.php";
...
$actions = array( 'edit', 'watch', 'unwatch', 'delete','revert', 'rollback',
'protect', 'unprotect', 'markpatrolled', 'render', 'submit', 'history', 'purge' );
foreach ( $actions as $action ) {
$wgActionPaths[$action] = "/action/$action/$1";
}
$wgActionPaths['view'] = "/$1";
$wgArticlePath = $wgActionPaths['view'];
$wgUsePathInfo = true;
RewriteEngine On
#Rewrite Urls<br/>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?(.*)?$ /index.php [PT,L,QSA]