For example, when we visit Bing in China, Bing jumps to cn.bing.com
Excuse me: How to achieve similar bing access level two domain jump?
Reply content:
For example, when we visit Bing in China, Bing jumps to cn.bing.com
Excuse me: How to achieve similar bing access level two domain jump?
A lot of practical solutions to introduce two common to you:
DNS resolution scheme, a lot of advanced DNS resolution can be resolved by the region (for example, Dnspod), as long as the resolution of the corresponding region into a jump on the line.
The advantage is that soon, the disadvantage is not flexible
program judgment, use IP to judge the source, and then jump in PHP, IP judgment source is very easy, many third-party IP interface can give out IP attribution.
The advantage is very flexible, the disadvantage is that each request to the PHP processing area, performance to consider.
Server judge, in fact, with the above is the same, nginx with a script to determine IP attribution, and then jump.
Advantages quickly, shortcomings maintenance a little trouble
Use GeoIP or a ready-made IP API library.
Both Nginx and PHP have extensions.