Someone fixed the redirects.conf file so that svn.wikimedia.org/doc redirects to doc.wikimedia.org/mediawiki-core/master/php, because svn.wikimedia.org/doc no longer exists since a while.
https://phabricator.wikimedia.org/diffusion/OPUP/browse/production/modules/mediawiki/files/apache/sites/redirects.conf;46785c71c5eab2b987363e83ec2a6f26a6d6dea5$463
For https://svn.wikimedia.org/doc, this works.
However, https://svn.wikimedia.org/doc/ and https://svn.wikimedia.org/doc/classWikiPage.html, and anything that has a slash in it, remains broken.
RewriteRule ^/doc$ doesn't match anything except /doc. If it was "RewriteRule ^/doc/(.*)$, then it would. But is changing
override svn.wikimedia.org/doc https://doc.wikimedia.org/mediawiki-core/master/php/ -> override svn.wikimedia.org/doc/(.*) https://doc.wikimedia.org/mediawiki-core/master/php/ wanted behaviour? Would it cause issues?