I was wondering if it was possible to tell a server (or a browser) to interpret all root-relative paths (ie, href="/folder/file.htm" or src="/images/image.jpg") as belonging to a different domain?
Currently, if I'm on domain.com, the path "/folder/file.htm" will be interpreted by the browser as "http://domain.com/folder/file.htm". But can the code be tricked into pointing all those links on a different domain than the one the HTML file is on? Something universal that would encompass ALL path references, even the paths located in the .js files... without actually modifying them in the code (hard-coding "http://alernatedomain.com" as a prefix to all those paths via search/replace is the long and clumsy way of achieving the same result, but I'd rather leave the bulk of the code unmodified).
I won't bore you with a detailed explanation of my reasons for asking this, but I'm essentially hot-linking everything between two domains I own. One domain has the HTML file only, while another has everything else from stylesheets to scripts to images to other HTML pages to link to. Since I own both, there's no danger of one side shutting down hot-linking to the other.