Thread:Manual talk:Short URL/Apache/Multiple MW installations on one Apache/reply

Configure your wiki one at a time, the technique you use will vary depending on how the directories intersect.

If your multiple wiki are setup like this:
 * Installation at http://yourcompany.com/departmentA/w/index.php and article path http://yourcompany.com/departmentA/wiki/Article
 * Installation at http://yourcompany.com/departmentB/w/index.php and article path http://yourcompany.com/departmentB/wiki/Article

You won't need to do anything special at all. .htaccess files only need to be high enough up in the path that they are above both the /index.php and /wiki/ paths. So you'll have /departmentA/.htaccess and /departmentB/.htaccess and wont need to do anything.

If your multiple wiki aresetp like this:
 * Installation at http://yourcompany.com/departmentA_wiki/index.php and article path http://yourcompany.com/departmentA/Article
 * Installation at http://yourcompany.com/departmentB_wiki/index.php and article path http://yourcompany.com/departmentB/Article

Then the wiki will share a common root since for a .htaccess to apply to both /departmentA_wiki and /departmentA it would need to be in the root .htaccess. But it won't be too hard, the rules that setup your short urls don't intersect so all you'll do is put the config you get for both wiki into the same /.htaccess file.

The only tweaks you'll want to make to what you get are that you'll only need one  and you might want to remove the   line that redirects the site root to the wiki's mainpage.