Change 301 redirect in startup() to a 302 redirect