fixing nginx redirects