homepage Welcome to WebmasterWorld Guest from 54.205.188.59
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / WebmasterWorld / New To Web Development
Forum Library, Charter, Moderators: brotherhood of lan & mack

New To Web Development Forum

    
Moving to new server - "301 Redirect"?
Need help with putting redirect. .ASP site.
William_W




msg:967522
 12:02 am on Aug 1, 2003 (gmt 0)

Hello.

I run a site on a Windows server (.asp) and am moving to a new server. Was thinking of leaving the 'old' server there for about a month or so.

I understand I need to put a 301 redirect so I will still be picked up by search engines? How?

I'm new. Basic HTML skills. Where do I put this message? Separate .asp file? .txt file? Within every page? BTW, I need specifics ... totally clueless :) Can you provide a sample of exactly how this 'line' should look like?

Thanks for any help at all.

 

bcc1234




msg:967523
 2:02 am on Aug 1, 2003 (gmt 0)

Don't do redirects if you are not changing urls.
Just leave the old server running for a bit.

Jack_Straw




msg:967524
 2:17 am on Aug 1, 2003 (gmt 0)

right. In more detail:

1. Say your existing site is www.abc.com running off ip address 1.2.3.4. Just leave it running.

2. Establish your site at the new server. It will still be www.abc.com, but will be running off of ip address 5.6.7.8

3. Change your nameserver for abc.com to point www.abc.com to 5.6.7.8 instead of to 1.2.3.4.

4. Wait a while. The amount of time will depend on parameters set up in your dns nameserver, but, a week is almost always sufficient - usually 2-3 days will suffice if you are pressed). The new dns will take awhile to propogate from your authoritative nameserver to all the other nameservers across the country. In the mean time, your site will be served from both servers until the new ip address has fully propogated.

5. Shut down your site on the old server.

The 301 redirect would only be required if you want to move from one domain name (say, www.abc.com) to another domain name (say, www.def.com). The 301 redirect indicates that requests for a particular url will now be served from a new url. Since, you are not changing urls, but are only changing ip address, 301 redirect is not relavent.

William_W




msg:967525
 2:30 am on Aug 1, 2003 (gmt 0)

Thanks bcc1234 and Jack_Straw!

I've heard that some search engines spider according to the IP address, no the URL - so when I terminate the 'old' server the spiders wouldn't know that I've moved, but rather simply think that the site doesn't exist anymore. Is this true?

Thanks again.

Jack_Straw




msg:967526
 4:12 am on Aug 1, 2003 (gmt 0)

SEs request pages with the url and the ip address. As does everybody. Generally, when one requests a url with a browser, the request actually proceeds more like this:

1. You enter a on the browser address line, or you click on a url from another page.
2. Your browser uses dns to get the ip address for the domain extracted from the url you requested.
3. Your browser uses http to send the request through the web to url at that ip address.

Two requests are performed. First, DNS is requested to get the ip address for the url. Then, the page is requested from the internet with that ip address and url.

Usually, these requests are performed within a second of each other.

SEs do not, really, crawl by ip address. They use urls. It is only that Google, and some other spiders, for performance reasons, will do the dns lookup days before the page is actually requested. Essentially, google caches the dns translation information.

This technique may cause google and many other search engines to continue to request pages from an old ip address even after you have changed the authoratitive name server for the domain. This effect might cause some people to erroneously conclude that SE's "spider according to IP address" instead of according to the URL.

The worst case timing is like this.

1. You change the ip address in the name server for the domain.
2. The change propogates to the other name servers over a period of, typically, a couple of days.
3. If Google crawled at the worst possible time (just before your change was available to them through dns), they might still request at your old ip address after looking it up in their dns cache. I have seen the cache be as old as a week.

Which means that you should expect that some SEs might continue to request pages from the old ip address for 10 days after you change the ip address in you authoratitive name server. A month of overlap to run both servers while the change is being propogated is a good amount. Two weeks would probably be adequate.

William_W




msg:967527
 5:22 am on Aug 1, 2003 (gmt 0)

Jack_Straw,

Thank you for your reply!

Clear, straight to the point, precise ... and understood by a newbie like me :).

OK then, I know what to do now.

Thanks again!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / New To Web Development
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