WhatsMyIP.org Forum
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 20, 2009, 06:34:28 PM

Login with username, password and session length
Search:     Advanced search
SMF - Just Installed!
351 Posts in 87 Topics by 171 Members
Latest Member: hampton1811
* Home Help Search Login Register
+  WhatsMyIP.org Forum
|-+  Networking
| |-+  OS Networking
| | |-+  XP Pro IIS internal redirect
« previous next »
Pages: [1] Print
Author Topic: XP Pro IIS internal redirect  (Read 537 times)
grouth67
Newbie
*

Awesome Points: +0/-0
Posts: 1


View Profile
« on: September 18, 2009, 02:22:55 PM »

I have setup an old Win XP Pro laptop with IIS server whose only purpose is to demonstrate our large genealogy society web site 'off line' with no internet connection. My problem is that hundreds of the .aspx pages are coded with http://www.oursociety.com links. My IIS server is running with my IP as http://10.0.0.123.

I am looking for a solution to redirect all www.oursociety.com requests to 10.0.0.123 'inside' my laptop. I am a linux guy with networking skills, I ran corp IIS servers in a past life, but I'm mighty rusty with Windows. If my laptop IIS server could be named www.oursociety.com that might be the ideal solution, but I can't see how to do that.

Any suggestions would be much appreciated. Thanks,  Gary
Logged
l008com
Administrator
Full Member
*****

Awesome Points: +1/-0
Posts: 151


View Profile WWW
« Reply #1 on: September 20, 2009, 04:09:46 PM »

The easy solution is to make all links relative links. Like instead of linking to www.oursociety.com/page2.php , make your a tag link to page2.php . I make all of my links relative links, except for links that may appear on multiple pages, like the links in my navigation bar. Then you can run the site on any domain and it should work fine.
Logged

l008com
Administrator
Full Member
*****

Awesome Points: +1/-0
Posts: 151


View Profile WWW
« Reply #2 on: September 20, 2009, 04:12:09 PM »

<a href="contact/">Contact Us</a>

^ link from whatsmyip.org home page, to whatsmyip.org contact page
Logged

sonnybadbutt
Newbie
*

Awesome Points: +0/-0
Posts: 1


View Profile
« Reply #3 on: November 04, 2009, 07:30:59 AM »

Easiest way is to edit your host file to point www.oursociety.com requests to 10.0.0.123 since there is not going to be a internet connection.Actually it would be better to use the ip address of 127.0.0.1
« Last Edit: November 04, 2009, 12:15:35 PM by sonnybadbutt » Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!