Adding redirector middleware