+ Reply to Thread
Results 1 to 6 of 6

Thread: How to redirect people from different countries to different page

  1. #1
    ChatIndia's Avatar
    ChatIndia is offline Community Advocate ChatIndia is on a distinguished road
    Join Date
    Sep 2009
    Location
    Exam Time. I won't tell you
    Posts
    1,320

    How to redirect people from different countries to different page

    I want to have a multilingual site. Hindi for Indian's and English for rest of the world. Even I can ask my friends to translate it into Bengali, Gujarati and Marathi. So How can I do this, do you have any idea about it? I want to use IP for it. I know that many people used to change their IP by software's, I also used to do when I'm not in my country or when I want to search something specific from other country but most of the time people don't use it at least for fair sites. So How to do this?
    Your appreciation is extremely Important. Click on the button at the bottom left corner of my post.

  2. #2
    Danielx386 is offline x10 Elder Danielx386 is an unknown quantity at this point
    Join Date
    Oct 2009
    Location
    Australia
    Posts
    698

    Re: How to redirect people from different countries to different page

    you could do it by .htaccess, but you would need to know all the different ip address for the different countries

    Daniel

  3. #3
    jtwhite's Avatar
    jtwhite is offline Community Advocate jtwhite is on a distinguished road
    Join Date
    May 2009
    Location
    TN, USA
    Posts
    1,381

    Re: How to redirect people from different countries to different page

    You could use php and search the IP string for a certain pattern. It would be difficult. It would be easier to have like a landing page and have the visitor chose the language.

    BTW, according to the Terms of Service agreement:
    At this time x10Hosting only supports English, Spanish and French websites on free hosting, these restrictions do not apply to paid hosting. Sites found breaking this rule will be permanently suspended.
    Last edited by jtwhite; 02-03-2010 at 09:34 PM.
    If I have helped you, please add to my reputation () on the bottom left corner of this post.
    jtwhite.me - Visit my site :D

  4. #4
    ChatIndia's Avatar
    ChatIndia is offline Community Advocate ChatIndia is on a distinguished road
    Join Date
    Sep 2009
    Location
    Exam Time. I won't tell you
    Posts
    1,320

    Re: How to redirect people from different countries to different page

    You could use php and search the IP string for a certain pattern. It would be difficult. It would be easier to have like a landing page and have the visitor chose the language.

    BTW, according to the Terms of Service agreement:
    I'm not bound by x10 TOS cause I'm on a paid hosting on another host, hooray
    Your appreciation is extremely Important. Click on the button at the bottom left corner of my post.

  5. #5
    stesouthby is offline x10 Sophmore stesouthby is an unknown quantity at this point
    Join Date
    Sep 2009
    Location
    UK
    Posts
    115

    Re: How to redirect people from different countries to different page

    lol but yer your easiest way would be to have a starter page with there langues and flags you want them to be in just because if you get the wrong ip address you might end up sending an english person to trying to read your site in german lol
    "It's time to prove to your friends that you're worth a damn. Sometimes that means dying, sometimes it means killing a whole lot of people."- sin city "You either die a hero or you live long enough to see yourself become the villain" - TDK

  6. #6
    Smith6612's Avatar
    Smith6612 is offline <<< wants a Turkey Smith6612 has a spectacular aura about
    Join Date
    Dec 2007
    Location
    Exploded
    Posts
    6,483

    Re: How to redirect people from different countries to different page

    The main gate (or a Global Page) would be one of the easiest ways to do it where people can choose where they're from and have the site remember the selection via a cookie. If you want to be crafty and know a bit about GeoIP data, you can in fact use code which will look at a person's location via GeoIP. Then there's the route of listing down possible hostnames for ISPs/IP blocks.

    What might be the easiest way of doing this is by using the information the browser sends. The main headers that every browser sends on connecting will give you the user's language, and in cases where there is more than one country for a language, their location (like EN-US and EN-UK). You can have your code look directly at that information as it's typically very reliable. GeoIP is a better route though given your GeoIP provider/methods can remain up to date!
    Last edited by Smith6612; 02-04-2010 at 03:36 PM.

    My signature likes cookies! Do you? :D

+ Reply to Thread

Similar Threads

  1. Image on Test Page Won't Load
    By Sonic2nd in forum Free Hosting
    Replies: 5
    Last Post: 12-24-2008, 05:29 AM
  2. [REQ][$$$]1 page image flash redesign for choclate sales
    By tgkprog in forum The Marketplace
    Replies: 5
    Last Post: 11-17-2008, 09:53 AM
  3. Use PHP to add Content to page through Admin
    By goldy30 in forum Programming Help
    Replies: 1
    Last Post: 11-12-2008, 11:13 PM
  4. Simple Ways to Build Trust in Your Website
    By tittat in forum Tutorials
    Replies: 13
    Last Post: 04-10-2008, 11:52 AM
  5. php next page error
    By nahsorhseda in forum Free Hosting
    Replies: 5
    Last Post: 11-25-2007, 05:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers