Fix redirect for nginx