Use CNAME for 301 or 302 redirect.