Here is my configuration: a folder named "fruits", and inside it another folder named "wiki" which contains the MediaWiki files.
I have the simple farm extension installed, with FarmMembers.php containing this code:
<?php
$egSimpleFarmMembers = array(
array(
'name' => 'Apple',
'db' => 'apple',
'addresses' => 'localhost',
'scriptpath' => '/fruits/apple',
'maintain' => false,
)
);
?>
apache2.conf file has the following configuration:
<Directory /var/www/html/fruits>
Options +FollowSymlinks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(?!wiki(?:/|$))[^/]+(?:/(.*))?$ wiki/$1
</IfModule>
</Directory>
This all works correctly but problems arise when I want to add short URL to it using the apache2.conf file. I tried to add short URL rewrite rules after the simple farm one, and tried to combine both, but with no success. Could you please tell me which rewrite rules did you write to get it to work successfully?
To make things clear, what I want to accomplish is a URL like this: localhost/fruits/apple/Main_Page and not localhost/fruits/apple/index.php/Main_Page .. i.e. removing the index.php part