More Virtual Promote ... Search Engine Forums · Webmasters Toolkit · Free Website Templates · Scumware.com
.
Virtual Promote Gazette Home Subscribe/Unsubscribe Archives  
.

gazette



Issue # 206 (10-12-2003)

Moving Day

On The Move...

You move your domain sometimes out of necessity, sometimes for financial reasons, and for a host of other reasons. Regardless of what you've been told, or what you've experienced ... it doesn't have to be a nightmare.

Coders Corner
While in the process of moving your domain, one of the steps you're going to be taking is in changing your domain's IP Number, through DNS. DNS Changes are not instant, and they are not globally done. What that means is that it might take 24 hours for your change to be seen at all by the Internet, and up to 72 hours before all of the DNS servers update themselves. In english ... it could take 3 days for your domain to be "up" in it's new location, and during that 3 days, some people will be "hitting" your new server, others will still be seeing your old one.

If you are a database driven site (such as our forums), this can be devastating. Paramount is making sure that all of your visitors are seeing the same machine all the time, so that your database remains in sync. If you're running apache (you should be...) Here's a way to make sure that happens:
  1. Turn OFF your old domain. Make sure that every single page, CGI application, PHP, etc. are all off, redirected to a "Sorry, we're down for maintainance" page of some kind. Don't worry, that page won't be up long.

  2. Unload/Dump your Database

  3. Move it to the new server, and load it there.

  4. On your old server, use apache's "mod_rewrite" to force all traffic from your old server to your new IP number. The following lines can be added to a file called ".htaccess" that you can place in your root/main web directory:
    
        LoadModule rewrite_module libexec/mod_rewrite.so
        AddModule mod_rewrite.c
        RewriteEngine  on
        RewriteRule ^(/)(.*)  http://XXX.XXX.XXX.XXX/$2
    
        Change "XXX.XXX.XXX.XXX" to the IP Number of your new server.
    
  5. Talk about this idea, or offer suggestions for users on other web server platforms in the Programming Forums


Read the Coders Corner section from the Last Issue or in the Following Issue


JimWorld Member comments and feedback ...

Add your own comment ....

We accept comments to Gazette Articles only by registered JimWorld.com members. If you are not yet a member, please join now. Membership is free, and entitles you to not only post comments here, but also to participate in our discussion forums, as well as other areas of the JimWorld.com network.

If you are currently a JimWorld member, your userid and password will allow you to login with the form below.

Login
Forget your password?
Password

 

 

Sponsored Links

Search for a Free Domain
The Virtual Promote Toolkit is hosted by the experts at SimpleNet. You should be, too! Whether building a new site or transferring one, there is no other hosting platform comparable to SimpleNet’s; hosting for less than $5/month.
Search for the following tlds: .com, .net, .org, .info, .biz, & .us
Already have a domain or site? Move it to SimpleNet


Hyperseek Search Engine
Member Spotlight
New ppcThink Blog
Cutting edge marketing strategies to increase your profits (flyingrose)
spacer

 

 

   

© 1995 - 2004  ·  iWeb, Inc DBA JimWorld Productions