homepage Welcome to WebmasterWorld Guest from 54.205.105.23
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Re-directing single page to two pages depending on the ip
raedthakur

5+ Year Member



 
Msg#: 3610715 posted 2:59 am on Mar 26, 2008 (gmt 0)

I am not sure if this is the right section to ask this question.

My question is How to do as follows:

If someone goes to my website www.xyz.com/abcd they should be redirected to
xyz.com/usapage if they have a usa ip address

And if they have a non usa ip address they should be redirected to www.xyz.com/nonusapage

Hope i am clear in exlaining my needs

 

tedster

WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3610715 posted 3:19 am on Mar 26, 2008 (gmt 0)

If you decide to use IP-based redirection, you should do it through whatever server side technology you are using, and not through client-side technology. We've got other forums here for many of the common server-side languages.

A personal note: I travel a lot, and I find automated IP redirection to be a major problem - and one that many sites have decided to drop in recent times. It's better to have one static landing page that allow users to make their own choice, I think. You can even offer to give them a cookie to remember their choice, but don't force it. I've had some trips in the UK where the hotel was using a German ISP and I wanted to access some US materials. Insanity!

Mander

5+ Year Member



 
Msg#: 3610715 posted 1:40 am on Apr 1, 2008 (gmt 0)

here's some stuff i found for you.. you will still need to put the algorithm for the page to check out which IP that is, but here's a redirect algorithm for IIS 7.0
[mvolo.com...]

tedster: use proxy

[edited by: Mander at 1:41 am (utc) on April 1, 2008]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved