I want make a web like google, when visitor comfrom ip range 203.123.0.0 to 203.123.31.26 and 67.27.0.22 to 67.27.27.89 , homepage will automatically direct to abc.com.vn/abc.htm ( i mean abc.com.vn/abc.htm is my domain language by vietnamese) and other ip will automatically direct to abc.com.vn (abc.com.vn is my english website). I use this code: But now i want more ip range, like this: I think it hard to do, so can anyone can did it in php? I mean in index.php make a redirect, when visitor from the above ip then redirect to abc.com.vn/abc.htm And other, will redirect to abc.com.vn/home.php