Added disableredirecthandling method. Close #1