Disable error reporting, and use correct redirect method