fix baseurl and add redirect