I have a landing page that redirects if the http referer is from a known site using a simple nginx rule:
location = /index.html {
if ($http_referer ~* (www.)?amazon.com) {
return 302 https://mydomain.com/amazon.html;
}
}
Should the redirect use a 301 (permanent) or 302 (temporary)? I'm thinking 302, since this is a marketing tactic. What is the best for SEO?
Thanks.