Redirecting Root domain to subdirectory by IP addresses (country specific)
-
We are using Wordpress Multisite.
so www.mysite.com is our English website
and www.mysite.com/sub is our Chinese website
Can I redirect Chinese visitors who type "www.mysite.com" to "www.mysite.com/sub" ?
so we want to force redirection to www.mysite.com/sub if our website is visited by Chinese IP Address.
I've realized that this is called GeoIP Redirection. and our hosting company already has those database, I guess my job is just to simply insert some code in .htacess
My question is, would it affect our SEO later on? and what .htacess code is the best practice here?
-
Also, be aware that in this global economy, the IP does not always determine language (think travelers and expats). Be sure to keep an eye out on conversions and bounce rates on the redirected visitors. It shouldn't be a big issue, but it is something to keep in mind.
-
Hi Joony - sorry for our delay! I believe that you can use ip detection to re-route Chinese IPs to the page you want. Just be aware that Google's crawling from Mountain View (even for their Chinese indices), so you'll need to provide links back and forth for manual/crawler navigation, too.
It shouldn't affect your SEO, and the plugin is a fine way to do it. You can also do it manually (lots of examples of how on places like StackOverflow, e.g. http://stackoverflow.com/questions/2316307/how-to-detect-a-users-language-through-their-ip-address which is a good thread and has numerous points of advice).
Best of luck!
-
I guess no one has expertise regarding this IP redirection.
I had to use a plugin called
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
-
Choice of domain
Hi. I want to build a new site that is optimised for a training product that we have. We have an existing domain which I'm considering pointing at this new site. This domain is one of the new .training TLDs. Let's call this domain foo.training where my main keyword to optimise for will be "foo training". I've also looked and can see that foo-training.com is available. I read up on best practices for domains here : https://moz.com/learn/seo/domain My question is will the .training domain be seen as "spammy" in any way? Am I better to just go ahead and register the .com?
Technical SEO | | rmcatalyst0 -
Is there a way to tell which redirect - from another domain - is driving traffic to your website?
My company acquired another domain/website several year's ago. We want to see - for accounting purposes, how much traffic/revenue that site's REDIRECTS are driving to our website now. Is there any way to pull this information? I thought of comparing when the site was originally redirected to our traffic/revenue changes - but so much has changed from the acquisition that I wouldn't have faith in this value. Thanks for any assistance you can provide.
Technical SEO | | Blenny1 -
Is it possible to export Inbound Links in a CSV file categorized by Linking Root Domains ?
Hi, I am performing an analysis of the total inbound links to my homepage and I would like to have the total amount of inbound links categorized by the Linking root domains. For example, the Open Site explorer does offer the feature to show you the Linking Root Domains to your page. Then when you click on the first Linking Root Domain, it also shows you the Top Linking Pages ( Which means all the pages that link to your page from this particular top level domain) Now I would like to export this data to a CSV file, but open site explorer only exports the total amount of top level linking domains. Does anyone has a solution to this problem ? Thank you very much for the help in advance!
Technical SEO | | Feweb0 -
Using same IP for differenct country TLD versions
Hi Will having a websites in several languages hosted on the same IP be a problem SEO wise if they are using different country TLD's? In this case shopdomain.de, at and co.uk on the exact same server IP
Technical SEO | | AndersDK0 -
302 to 301 redirect
Our site has quite a few 302 redirects that really ought to be 301's. Our IT department is really busy so the question is, given that the 302's have probably been in place for years, is it worth changing them to 301's now? Thanks
Technical SEO | | Houses0 -
Is it better for our Blog to be blog.domain.tld or domain.tld/blog ?
I'd dread the answer being the latter rather than the former as we've spent two years building it blog.domain... However I noticed SEOmoz are domian.tld/blog and it got me thinking.... Cheers. R.
Technical SEO | | RobertChapman0 -
302 multiple domains...
Hello, I have a few domain names with orthographic variations that I'd like to redirect to my main site. The problem is my registrar (OVH) does only 302 redirects, so what are my options ? Can I keep a dozen 302's ? Do I have to change all their DNS (it's a load on my server...) ? Thanks for any ideas Johann.
Technical SEO | | JohannCR0 -
Does redirect of domain alias help rankings?
Yes... It iz I again ;o) Here's one for you savy techies out there: So, I've got a primary domain which is live, optimized and running smooooth. And then I've got a couple of misspelled domains as well (17 to be exact). Will it have an effect if I 301 those misspelled domains? What's Best Practice for several domain aliases? Example.
Technical SEO | | nosuchagency
Primary domain: bryghusprojektet.dk
Alias domain 1: bryghusprojekt.dk (301 redirects to primary domain)
Alias domain 2: bryghus-projekt.dk (Hosting company infopage)
Alias domain 3: bryghus-projekter.dk (Not activated) Regards.1