Support redirects on nginx