Hi,
I'm attempting to host a site on my machine while I work on it, but I'm running into (what I hope is a small) problem:
My site lives in my Sites directory, so the url is http://127.0.0.1/~nick/mysite.com
However, many of the pages in my site rely on URLs relative to the document root, expecting mysite.com to be the root. So, when I load up my site, all of my links and images break.
I've done a bunch of searching, but I can't seem to find the way to fix this. Can anyone offer any suggestions?
Many Thanks,
Nick
I'm attempting to host a site on my machine while I work on it, but I'm running into (what I hope is a small) problem:
My site lives in my Sites directory, so the url is http://127.0.0.1/~nick/mysite.com
However, many of the pages in my site rely on URLs relative to the document root, expecting mysite.com to be the root. So, when I load up my site, all of my links and images break.
I've done a bunch of searching, but I can't seem to find the way to fix this. Can anyone offer any suggestions?
Many Thanks,
Nick