Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

We are rebuilding our travel site to have both en-US and en versions, storing the language/region code in the url as a subfolder. Eg:

www.domain.com/africa/botswana (hreflang="x-default")
www.domain.com/en/africa/botswana (hreflang="en")
www.domain.com/en-US/africa/botswana (hreflang="en-US")

All pages will be available in all three versions. A visitor landing on the x-default url will have their origin detected via geoip and be redirected to one of the language/region-specific urls.

We plan on offering a site selector (flag dropdown) on each page to let a visitor override the detected origin - this will drop a cookie to remember the preference.

When a visitor does land on a non-specific url and is redirected, should this be a permanent (301) or temporary (302) redirect?

share|improve this question

1 Answer 1

I'd be careful using 301 Moved Permanently if the original URIs are still valid. You risk search engines will unindex them and reindex your site with the redirected URIs only.

I'd rather consider 302 Found or the 307 Temporary Redirect (These are HTTP 1.1). After all that's what you're doing - redirecting this current user temporarily as he requests another translation.

In addition would consider specifying the canonical URLs to avoid duplicate content issues.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.