Results 1 to 8 of 8
  1. #1
    Join Date
    Nov 2000
    Location
    New York
    Posts
    78

    How to change links easily when moving a site???

    Hello!

    Is there a way to change links easily when moving a web site from one webhost to another?

    Thanks in advance for your responses.

    WP1
    Webbing Along!!!

  2. #2
    Join Date
    Nov 2001
    Location
    California
    Posts
    1,991
    Can you restate your question?

  3. #3
    Join Date
    Apr 2002
    Location
    Philadelphia
    Posts
    2,278
    Could you be more specific?

  4. #4
    what do you mean

  5. #5

    Re: How to change links easily when moving a site???

    Originally posted by WP1
    Hello!

    Is there a way to change links easily when moving a web site from one webhost to another?

    Thanks in advance for your responses.

    WP1
    Normally you would point the links within your site via relative links (eg /newpage.html) or even if you use static links pointing to your site with domain name (http://www.abc.com/newpage.html) . Once you do that and move the web site to a new host and transfer the name, you can keep the links as it is. There is no changes you need to make.
    http://www.batchimage.com - Offering Batch Image Processing and TIFF/PDF Software Solutions

  6. #6
    If links are not relative, you need to replace every instance of the initial webhost to the new webhost. If they are all static html pages, you could run some kind of script (like a perl script) to do the substitution.

  7. #7
    Join Date
    Jan 2002
    Location
    Toronto, Ontario, Canada
    Posts
    770
    As eddy2099 pointed out, if the domain name itself isn't changing and you're merely moving the site from one host to another, you really don't have to change any links at all (e.g. http://www.a.com/b.html will be the exact same page on the new host as it is on the old one, once you upload your site). The only thing you have to change, as an41 pointed out, is any references to IP addresses and/or information specific to your old site and not your new one (e.g. a server path to a database link). Chances are, 90-95% of your content will not have to be changed. You're looking at a few minor adjustments here and there though, depending on the complexity of your site.
    Is Canada the best? Noo Doot Aboot It!
    "And on the eighth...day...God...created...Mankind. WHY WAS HE HAVING SUCH A BAD DAY?" -- Mick Foley

  8. #8
    Join Date
    Jul 2002
    Location
    Sweden
    Posts
    2,059
    You can use some software like 1stpage2000 to do a search and replace on the linkpart that needs to be changed. You might also look into using relative links so you don't need to do the same thing next time.
    "Stop flame-wars - Report a post"
    The original Kitty Lizard

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •