It's been what feels like a million years since I've played with web technology, and I'm feeling lost.
I'm moving an already-established website to a new shared host (LiteSpeed). I have not yet pointed the domain to the new nameservers, as I'm still setting up stuff. I'd like to be able to look at the site on the new server to make sure everything I need is uploaded and not broken.
The pages use root-relative URLs and sources.
e.g.:
<link href="/layout.css" />
<img src="/_graphics/img.gif" />
Currently, because my domain is not yet pointing to the new space, my root directory is not www.mysite.com, but rather www.myhost.com/~myaccount/
Naturally, because of this, all of my links and sources are trying to access my files from www.myhost.com/ and failing.
Years ago, while doing a similar project, I seem to recall using a pretty simple site-wide code to accomplish this (I remember regretting it when I forgot to remove it when my site went live and Google started indexing my non-domain links) -- seems like classic mod_rewrite behavior, but I've searched and tried various things to no avail.
Either that, or it might be as simple as the HTML tag <base href="">, but for some reason I can't get that to work for me.
Can anyone help? I hope I've explained this clearly enough -- I'm bleary-eyed at this point.
Thanks!