Changing web host questions/issue

Discussion in 'Site & Server Administration' started by carowan, Apr 4, 2006.

  1. #1
    Im changing my webhost for the first time, and am uncertain of how to resolve this questions.

    My new host has give me a server IP address so I can upload my files which I have done. I have not made any changes, just moving hosts.

    I have been sucessful in logging into cpanel with the temp IP address by doing
    12.34.56.78/cpanel (im just using 12.34.56.78 as an example)

    however when I try to view my index.htm page, 12.34.56.78/index.htm
    it comes up broken, with no background and images.

    My question is, should I be able to see my pages as intended even though im using a temporary IP address, and will the broken images etc resolve when the DNS resolves?

    or should I be able to view all of my pages exactly as I intended even though Im using a temp IP address?

    Thanks for any and all insight and advice in advance!
     
    carowan, Apr 4, 2006 IP
  2. daboss

    daboss Guest

    Messages:
    2,249
    Likes Received:
    151
    Best Answers:
    0
    Trophy Points:
    0
    #2
    the answer depends on whether you specified the path to the images explicitly in your pages... if you did, they'd appear broken when you use the ip address as part of the url...
     
    daboss, Apr 4, 2006 IP
  3. BrianR2

    BrianR2 Guest

    Messages:
    734
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If you're using the same file structure as on your old host then when the DNS resolves all the broken images/backgrounds/links will appear as on the old site.

    The images will be broken if you used paths such as <img src='http://www.yoursite.com/image.jpg'> because yoursite.com is still pointing to the old host. If you use <img src='/image.jpg'> or a file-relative reference then they should appear because they will be relative to the ip address where the files are stored. The same idea applies to your links, background images, etc.

    On the other hand, if you're on a shared ip, the location to your files may be like: http://12.34.56.78/~username/index.htm until the dns resolves so you should try that or find out what path to type when using your ip address by contacting your new hosting company.
     
    BrianR2, Apr 4, 2006 IP
  4. carowan

    carowan Peon

    Messages:
    473
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Daboss and BrianR2,thank you both. I update the file locations and I put a ticket for my path. thanks again!

     
    carowan, Apr 4, 2006 IP