New function to set canonical URL redirection type