Modular redirection resolutions middleware