Update federation routing logic to check .well-known before SRV