OsakaWebbie
Programmer
I am trying to move a site to a new hoster, and of course I want to make sure everything works before I point the domain's DNS entries to the new location. But it's a shared hoster whose structure is different from hosters I'm used to - they don't issue you an IP address that is your HTML root directory, but instead, the pre-domain-name URL is a shared domain (or IP) plus a personal subdirectory. My code is complex, and some file paths are absolute in relation to the document root, and of course they all break. Two questions:
[ol][li]When I point my domain name to the site eventually, will these paths get well, or do I need to change everything to relative paths (which I don't really want to do) or find a hoster that lets me have a document root?[/li]
[li]If the paths will work right when the domain name comes, is there anything I can do in the meantime to test the code? Server software versions are very different, so extensive testing is needed. I was wondering if an entry in my local PC's hosts file or something might work to force it to look like an HTML root just for me, but I have never done something like that to point to an external site with a subdirectory, and I can't find anything relevent searching the web.[/li][/ol]
Thanks in advance for your help.
[ol][li]When I point my domain name to the site eventually, will these paths get well, or do I need to change everything to relative paths (which I don't really want to do) or find a hoster that lets me have a document root?[/li]
[li]If the paths will work right when the domain name comes, is there anything I can do in the meantime to test the code? Server software versions are very different, so extensive testing is needed. I was wondering if an entry in my local PC's hosts file or something might work to force it to look like an HTML root just for me, but I have never done something like that to point to an external site with a subdirectory, and I can't find anything relevent searching the web.[/li][/ol]
Thanks in advance for your help.