Improved redirect by supporting object-type rule and supporting reload option.