Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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


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.