Thread:Talk:Requests for comment/API Future/Mysterious api base path

Another grievance worth fixing: Interwiki site info can be used to create an article URL, but not to access the remote site's API. MediaWiki's suggested apache rewrite rules yield unguessably different paths for index.php and api.php. My first recommendation would be to fix our suggested rewrite rules. But as a fallback, it would be smart if index.php were able to delegate to api.php by some mechanism, for example: https://en.wikipedia.org/wiki/?api=v2&action=query&generator=allpages&gaplimit=5&prop=images&imlimit=10