changed redirects to reflect host path