Add a fixed redirect method that works with the modified URIs. Add a handler for any HTTP errors.