I'm transferring my site to a new host's VPS, which is running apache. I've copied the site over to the new server but have not yet pointed the domain name to the new DNS.
I'm temporarily accessing the site on the new server by its dedicated IP address. There was an inexplicable problem with the site's links working correctly, but now the site's links are working just fine.
My new host says, "you cannot use the temp URL and get perfect results, your best bet is to [redirect the domain to the new IP address using your PC's] 'hosts' file, clear cache and access the site by the actual domain."
This doesn't sound right to me. My site's links are all relative and contain no domain name. If I'm pointing to a URL such as http://##.##.92.165/insurance-rates/year
, shouldn't that just work regardless of DNS or browser history?
It seems to me that using IP-based URLs should be completely dependable, negating any need to alter my PC's hosts file to access the site by it's domain name. Am I incorrect?