My client recently bought a vanity domain name and wants to redirect all the traffic that hits this url to their existing website that has a page with a very similar name.They bought nameofpage.com and want all the traffic to go toclientWebsite.com/name-of-pageI was thinking of adding a 301 to nameOfPage.com. Would this be ideal or would a 302?My question is how will this impact on the existing ranking of the page and what would be the best approach to do this?
Redirecting a new TLD to an existing page
redirects;ranking;top level domains
In your case, a 301 redirect is appropriate. The 302 is temporary and does not yield the same results. A 301 is more traditional and correct.Adding another domain name normally will not yield any benefit, however, from a marketing standpoint, using it in a marketing campaign makes sense. While as an IT professional, I cannot stand adding another domain name, the marketer in me says YES! Total win!The only thing I would do from a cautionary standpoint would be to create a canonical link on example.com/path/to/page that points to itself. While there is generally no danger in your scenario, when a page can be found via multiple URLs, it is always wise to chose one as the original and use a canonical tag. In this case, you do not have a choice as to which URL to use.Here is Google's page on that. There is an example under the heading: Indicate the preferred URL with the rel=canonical link elementhttps://support.google.com/webmasters/answer/139066?hl=en