all redirects work in localhost