Add redirects support to core