Manual:$wgScript/ru

Details
The URL of index.php, relative to DOCUMENT_ROOT.

is defined relative to $wgScript. If you redefine this in your then you must also make sure you update.