Added 301 Permanent Redirect option to the domain redirect logic