Changed redirect to use code 307 by default as it won't be cached and thus avoids headaches when debugging.