separate redirect servers for get and post; need to test
fixed bugs in the last revision