rewrite some nginx 301s