
: Should a targeted landing page redirect use 301 or 302 status code I have a landing page that redirects if the http referer is from a known site using a simple nginx rule: location = /index.html
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 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.
More posts by @Karen161
1 Comments
Sorted by latest first Latest Oldest Best
302 redirects should be used if they are temporary only - it basically serves as an instruction to "recrawl this later", as far as my understanding goes. So if the redirect will be permanently in place, 301 is the way to go.
However given you're testing a referrer, when Google crawls the site they won't know about the redirect at all, so I'm not sure what bearing you'll see this having on your SEO.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.