GeoIP - Redirect all but target country
-
My client would like to redirect all non UK traffic from their UK site to their main group site.
I am intending to use a .htaccess redirect, like this:
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} !^GB$
RewriteRule ^(.*)$ http://www.group.com$1 [R,L]I have tested the redirect at it works fine.
My question is if I put this in place would it have any negative SEO impact on the UK site?
-
Hello, Thanks for this, and this is an old thread but I had a very smilar question to this.
What do you exactly mean by indexation problems?
Do you mean the Google refuse to crawl UK site in this example? So they don't index UK webpages? I don't think this make sense? or I am getting a wrong idea.
I am just wondering where you found this information. I did my homework and SEOmoz ppl talked about "cloaking" video by Matt Cutt and He says GeoIP redirecting is fine? I am no where close to an expert but had to ask this question because I was trying to do the same thing,
http://www.seomoz.org/q/redirecting-root-domain-to-subdirectory-by-ip-addresses-country-specific
Thank you!
-
You're welcome
-
Many many thanks Rebecca!
The quality of this answer makes this years subscription worthwhile, and we are only a month in.
Must have taken you some time, it is much appreciated.
Cheers, Gary.
-
Hi Gary,
This sort of redirect can cause indexation problems.
Typically Google crawls from the US - and as such the bots may only see your US content - no UK content = no UK rankings - so this isn't a solution which I'm keen to recommend.
If you really need to implement something like this, you could try doing what cheapflights.com do. For example if you visit cheapflights.com from a UK IP they redirect you to this international choice page -
This solution allows the bots to crawl both versions of the sites, plus it allows users to select which version of the site they wish to see.
You might also consider one of the following -
a) Don't do any IP redirection, but upweight the links to the international sites so that there is a clear route for users to find the right version of the site.
b) Use IP detection to show a JavaScript overlay suggesting non-UK users might want to visit the main group site - but don't actually redirect them.
I hope this helps
Hannah
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
-
Tough 301 redirect with a /www in it
Hi Mozzers, I'm using Eggplants 301 redirect via wordpress and for some reason I can't redirect one url. The example of it is below: www.website.com/news/www.website.com As you can see, it looks like there's 2 url's and this plugin doesn't do the trick. Does anyone have any suggestions? Maybe via .htaccess? Thank you!
Intermediate & Advanced SEO | | Shawn1240 -
303 Redirects Search Engine Friendly?
Do 303 redirects work more like 301s or more like 302s when it comes to passing SEO authority?
Intermediate & Advanced SEO | | MiguelSalcido0 -
Rel canonical or redirect
Hi, my client has the following links pointing to the home page http://www.weddingrings.com/index.cfm http://www.weddingrings.com In this case would I use rel canonical or redirect?
Intermediate & Advanced SEO | | alexkatalkin0 -
Should I just redirect all my sites to my main site.
Hi, Over the last few years I have built many sites and own a lot of domain names. Some have high page rank some have high domain authority and some have many back links. I'm finding it very difficult to keep up with all the links and being able to provide quality content for everything. Should I just redirect everything to my one site that make the most money as all sites are for the same industry, but in different categories of that industry. So I could 301 redirect all the sites to the relevant page on my money site. Would it be a problem is 1000's if not 10,000's of links all of a sudden pointed in to one site?
Intermediate & Advanced SEO | | cibble030 -
DNS or 301 Website Redirect
We are running a marketplace site, so we have thousands of vendors selling their products on our site. Each vendor has a Profile page and we are soon to launch a premium store-front that is white label. Many of these vendors will want to point a custom url to their premium store-front (which is a sub domain of the marketplace) and we are trying to get an understanding of how we should instruct them to point their url in a way that will give the main marketplace site the seo juice. We also want to understand what will show up in the address bar. Will it be their url or our sub domain? Will any of the marketplace seo juice boost their url local listing status?
Intermediate & Advanced SEO | | bloomnation0 -
Redirecting a Page from Domain A to Domain B
We have a page on Domain A, an established and well-ranking website, that would be more appropriate on Domain B, a site that we launched about two years ago. This page ranks well, pulls nice search traffic and has traffic from external links. We would like to move the page and its traffic from Domain A to Domain B using a 301 redirect. Have you ever done this or have you heard of how it has worked for someone else? Thanks!
Intermediate & Advanced SEO | | EGOL0 -
How long do 301 redirects have to stay in place?
For a large retail site we have plenty of "old" pages that are 2-3 years old and still have 301 redirects to a new page. After a search engine has recognized a 301 redirect and dropped the "Old" URL from the index and started displaying the "New" URL, is it safe to delete that old page and thus remove the 301 redirect?
Intermediate & Advanced SEO | | SEOmoxy0 -
How do I go about changing a 302 redirect to a 301.
Hello Friends! Thanks for viewing my question. Ok,My question today is How do I go about redirecting a 302 link to a 301 link. I understand the benefits of doing this as far as link juice and how the Search Engines views the two Re-Directs. I am wanting to know where I would start to do this. Thank you in advance for any help or suggestions!
Intermediate & Advanced SEO | | FrontlineMobility0