Manual:$wgRegisterInternalExternals

Details
Whether to register external links pointing to the same server.

By default MediaWiki does not register links pointing to same server in externallinks dataset, use this value to override it.