« Previous Next »

Answered Thread: Website migration to a new IP address

Last post 10-28-2009 10:01 PM by qbernard. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 10-28-2009, 11:29 AM

    • tatapoum
    • Not Ranked
    • Joined on 10-28-2009, 3:21 PM
    • Posts 2

    Website migration to a new IP address

    Hi,

    I plan to migrate an old IIS website to a completely new website with a new IP address and a new design. It will take a few hours for the new IP address to be populated into the internet DNS servers. During this moment, I'd like all requests to my old website to be redirected to the new server transparently. Some kind of alias www.website.com -> new IP address handled by the old server. I know I can configure a 301 redirection on the "home directory" tab in IIS, but as the URL is the same, I would need to enter the new IP address and my users will see the IP address, which is not very elegant. Is there a way to do this easily ?

    thx!

    Tatapoum

  • 10-28-2009, 11:46 AM In reply to

    Re: Website migration to a new IP address

     Add a redirect on your new server's home page to direct http://{IP_Address}/ to http://{Domain_Name}/.  Could be as simple as a Meta-Refresh tag.

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
  • 10-28-2009, 11:53 AM In reply to

    Re: Website migration to a new IP address/ Use the TTL

    Firstly unless there is user updatable content, is it actually a problem if for a few hours people access the old server? 

    Secondly you can configure your new server to respond to hostnames www2 as well as www, and point www2 to the new server FIRST - nobody will be using that name. Then when you set the redirect up redirect to www2.yourdomain.com or whatever.

    Thirdly it shouldn't take hours if you do it properly: You need to use the TTL to solve this problem. Ask your DNS or hosting provider how, but it goes like this.

     A few days before the move, cut the TTL to 30 minutes. On the day of the move, cut the TTL to 5 minutes. Then you get at most 5 minutes crossover.

    Once the new server is happy, put the TTL back up to 48 hours.

    Cheers, Ben.

     

  • 10-28-2009, 11:57 AM In reply to

    • tatapoum
    • Not Ranked
    • Joined on 10-28-2009, 3:21 PM
    • Posts 2

    Re: Website migration to a new IP address

    Don't forget that the old and new URLs are the same. Only the IPs change. As far as I understand, if I do a meta-refresh, I will have to point to the new IP address and the users will see it. Is there a way to transparently redirect my users to the new server (keeping the same URL) ?

     BTW, I like your photo, it reminds me of the cover of Nirvana's Nevermid ;-)

     

  • 10-28-2009, 10:01 PM In reply to

    Answered Re: Website migration to a new IP address

    Well, typically at the old server, we have to make sure that it is referring the URL with new IP, either force dns refresh or host file.

    In this case, old client (without dns refresh) will go to old server, and got redirect. For new client (with dns refresh), it will go to the new server with the new ip address.

     

    Cheers,
    Bernard Cheah
Page 1 of 1 (5 items)
Microsoft Communities