Move redirects and error handlers to the last items set up