Context aware redirect

Make 301 redirects context aware. Aliases are unique to contexts