Note: for better and for that you need to use server side scripting to find the location of the user and there is one extra thing that you need to do. for detail see below
First, you need to check the users ip address of the user visiting your site
if you are using C#
then here how it's done
string VisitorsIPAddr = Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
if (VisitorsIPAddr != null || VisitorsIPAddr != String.Empty)
{
VisitorsIPAddr = Request.ServerVariables["REMOTE_ADDR"];
}
var request = (System.Net.HttpWebRequest)System.Net.WebRequest.Create("PathToTheWebResorceForExample_geobytes.com");
Second thing that you need to check the location against user ip address.
Your request will be something like this
http://getcitydetails.geobytes.com/GetCityDetails?fqcn=Visitors_IP_ADDRESS
You can do this from site like this http://www.geobytes.com/iplocator/
The request will return json
that will include city
, country
and related information.
Then if you are using C#, the you need to use JsonConvert class to parse and get the location.
Then if user from India then redirect him to whichever page you like.