I am currently configuring my website on a shared LAMP server.
I have not yet transferred the domain name, so the site is accessed by ip address and a folder e.g. <ip address>/~mysite/

The problem is that my absolute links to css & js files etc will now point to the root i.e. <ip address>/css/ and not <ip address>/~mysite/css/

Is there a solution I can use to get my site working without changing all the links, and that will work when the domain name has been transferred?