Added redirect middleware, using config settings to redirect url's whenever needed