https redirection
fixing ssl middleware
splitting middlewares