What is the best way to execute a geo redirect?
-
Based on what I've read, it seems like everyone agrees an IP-based, server side redirect is fine for SEO if you have content that is "geo" in nature. What I don't understand is how to actually do this. It seems like after a bit of research there are 3 options:
-
You can do a 301 which it seems like most sites do, but that basically means if google crawls you in different US areas (which it may or may not) it essentially thinks you have multiple homepages. Does google only crawl from SF-based IPs?
-
302 passes no juice, so probably don't want to do that.
-
Yelp does a 303 redirect, which it seems like nobody else does, but Yelp is obviously very SEO-savvy. Is this perhaps a better way that solves for the above issues?
Thoughts on what is best approach here?
-
-
You are welcome.
Hmmmm.. don't know about Yelp, I've seen others using 303 too, but still 302 seems to be the way to go.
-
Thanks Federico. Any insight as to why Yelp, who is very seo savvy, uses a 303?
-
Well, personally I would go with a 302.
The reasons are:
301: the browser "remembers" that 301, so next time the user request that page, their browser will automatically redirect as the last time it accessed the page. However, the 302, as a temporary redirect will let the browser know that it should re-request the page.
Say your website www.example.com holds an english version in the root, and then a german version in www.example.com/de. If a german user accesses the site for the first time, you do the geolocation check and redirect to german version while saving a session/cookie of the chosen version. Then if the user chooses to switch to the english version you update that cookie/session to save the one that the user chose to navigate and make a 302 redirection. Next time the user accesses, having the cookie will automatically show/redirect to the appropriate language.
Using the same example, if you did a 301, then even if the user changed the language, as the browser already has a 301-permanent redirect, he will be redirected to the "first version served".
SEOwise, if we take a quick look on Google, they use 302 to redirect users to the "appropriate" version, so I guess that should be ok as long as you use rel="alternate" to point to the other versions of your site:
https://support.google.com/webmasters/answer/189077?hl=en
EDIT: link juice flows to the page that the link is pointing. Say a link points to www.example.com then the juice goes to www.example.com, even if that page has a redirection to the german version (when accessed from germany). Anyway, it is said that 302s also pass some pagerank.
Hope that helped.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
What is the safest way to redirect for best SEO benefits?
What is the safest way to redirect for best SEO benefits? Example: loodgieter-aanhuis.nl -> loodgieters-ambacht.nl Does someone have any technical information on how to (root) redirect for best SEO practices?
On-Page Optimization | | hans-keeren0 -
Use H2 or H3 for Six Ways to Hip Thrust https://www.fitness-china.com/hip-thrust
Our article about Hip Thrust https://www.fitness-china.com/hip-thrust We have sex tips about how to hip thrust. that use h2. but Final Words use h3 or h2?
On-Page Optimization | | ahislop5740 -
Is this method of redirecting of 404 okay?
Hi all, This is my first post at this forum 🙂 I'am running a Opencart shop with a SEO extension installed. This extension has a redirect module which works like this. When visiting the site on 404 url (and if there is setup a redirect for that url). It serves the correct content but on the 404 url with the correct url set in rel canonical. For example: Try visit this url:
On-Page Optimization | | mrmagnecom
https://makitech.no/ventilasjon/ventilasjons-pakketilbud
Here i have setup a redirect to the correct content, which is actually this url https://makitech.no/pakketilbud I am used to use a 301 header redirect so the user get redirected to the correct url. So my question is this. Is it a okay practice to serve the content on the 404 url (it responds 200) when the correct url is set in canonical? Any thoughts?0 -
Best way to give away rank?
We have a set of branded and unbranded keywords that we want our product site to rank very high for. Right now, our support site owns the first page of rankings for most of the keywords we care about. What is the most efficient way to give the rank currently enjoyed by our support site to our product site? Both have very high domain authority and tons of backlinks. Here are some factors that might apply: Support site has lots of copy including these keywords, while product site doesn't (yet) Support site doesn't currently include a lot of links to the product site (and vice versa) They're on the same domain -- support is at support.domain.com, product is on www.domain.com Support site has many more pages and their URLs are more semantically related to keywords I know there are lots of structural improvements implied by the above -- on the product site, increase the amount of copy (and landing pages) focused on keywords and significantly improve internal links, etc. But I'm wondering if the fact we control both sites gives us any options we wouldn't have in a competitive situation?
On-Page Optimization | | hoosteeno0 -
How long should I leave an existing web page up after a 301 redirect?
I've been reading through a few of blog posts here on moz and can't seem to find the answer to these two questions: How long should I leave an existing page up after a 301 redirect? The page old page is no longer needed but has pretty high page authority. If I take the old page down—the one that I'm redirecting from—immediately after I set up the 301 redirect, will link juice still be passed to the new page? My second question is, right now, on my index.html page I have both a 301 redirect and a rel canonical tag in the head. They were both put in place to redirect and pass link equity respectively. I did this a couple years back after someone recommended that I do both just to be safe, but from what I've gathered reading the articles here on moz is that your supposed to pick one or the other depending on whether or not it's permanent. Should I remove the rel conanical tag or would it be better to just leave it be?
On-Page Optimization | | ScottMcPherson0 -
Www no longer redirects
Hi there, A while back I dropped the www from my domain. Everything redirected ok and I could still access my site using www and it would simply redirect to http://mysite This no longer seems to be occurring. I don't think I have changed anything? I don't believe I had anything in my htaccess however I am looking for some assistance in doing so. I've done a bit of reading but am not 100% confident! If anyone is interested, the url is http://cdkeyprices.com Thanks
On-Page Optimization | | MrPenguin0 -
What is the best way to change keywords?
I have a client who is moving and I'll need to redirect their site to a new city. Taking local out of the picture, what is the best way to convert the site? Here are somethings I've already done. Changed the title keywords Ensured the page grade is an A for the new keywords. Changed the alt tags on images on the front page. Since I made these changes, the website has actually fallen in ranks from what it was initially ranking for the new city (the website was already ranking organically on page 2 and has dropped to mid page 3.) Thanks in advance
On-Page Optimization | | jonnyholt0 -
What is the Best Landing Page setup?
I have seen a few different types of landing pages. I am trying to figure out which style works best from a SEO perspective. 1. The cram everything possible onto the page approach ala nyt.com? 2. The fill your home page with a ton of links approach like cnn.com? 3. The put just a small sample of your content approach like seomoz? I see 4 blog snippets, a "Go To My Campaign" call to action and that's it. 4. Pages like Groupon.com which have 100% focus on a call to action. I also notice many focused pages like Groupon remove the header and footer on their landing page. Does that help the page retain it's PR better?
On-Page Optimization | | KevinPatrick0