VE-572 VE: Parsoid is throwing 404 errors on multiple wikis

Original regex bug fix was incorrect. This has been fixed and should handle prefixes, api endpoints and routes that start with `_`.

@inez @kflorence