And So I come with an Apache .htaccess file that consists of this:

RewriteEngine On
RewriteRule ^/(javascript/.*)$ /$1 [L]
RewriteRule ^/(styles/.*)$ /$1 [L]
RewriteRule ^.*$ /index.php

Regrettably, the final line's paying a 500 error around the server that we have moved the code to. It really works fine on my small machine, Ubuntu 9.10 running Apache 2.2.12, but this is not on the server running Apache 2.2.14.

Can there be in whatever way to rewrite it to ensure that the server does not return that error?

The next versions may go

RewriteRule ^/.*$ /index.php
RewriteRule ^.+$ /index.php
RewriteRule ^(.+)$ /index.php
RewriteRule ^/(.*)$ /index.php

I understand that that one,

RewriteRule ^(.+)$ /index.php/$1 [L,QSA]

Can be useful for me on a number of my mediawiki sites.