Subdomains and Relative Links

If anyone sees this (somehow!) and happens to have an answer, I’d be interested in knowing if the following is possible:

Currently, the actual website for this domain is a.. temproray facade. That’s going to change at some point, but while developing that website I’d like to be able to test it on my local machine. Now, by and large that shouldn’t be very hard – all I have to do is load up Apache and away I go. And I know I can’t use relative links for stuff like Javascript and CSS files on different subdomains. Symbolic Linking (thanks to running a Linux host) is the only real way to do that. However, what I would like to know, is if I can do something like the following:

Instead of having a link to, say, http://blog.ipsi.net.nz, which isn’t much use if I’m testing on my local machine, I could do something like http://blog.{host}/. If that’s not possible, that’s fine. But if it is, I’d really like to know. Would make testing that little bit easier. If not, I could probably just use PHP to do something similar.

Leave a Reply