Mobile app version of vmapp.org
Login or Join
Karen161

: 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

@Karen161

Posted in: #301Redirect #302Redirect #Seo

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.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Karen161

1 Comments

Sorted by latest first Latest Oldest Best

 

@Eichhorn148

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme