Steve Smith
October 21st, 2005, 07:23 PM
Within my webspace, I have two separate websites. If you say do href="/photos.html", it obviously refers to www.mydomain.com/photos.html, rather than www.mydomain.com/site1/photos.html. I don't want to use href="/site1/photos.html" in case I rename one of the sites.
I tried using
<base href="http://www.mydomain.com/site1/">
along with href="photos.html", which works, but isn't really what w3.org says base is for (see http://www.w3.org/TR/html401/struct/links.html#h-12.4). In any case, I'm using SSI, which ignores base.
Can anyone think of a way I can make href="/photos.html" point to site1/photos.html or site2/photos.html?
I tried using
<base href="http://www.mydomain.com/site1/">
along with href="photos.html", which works, but isn't really what w3.org says base is for (see http://www.w3.org/TR/html401/struct/links.html#h-12.4). In any case, I'm using SSI, which ignores base.
Can anyone think of a way I can make href="/photos.html" point to site1/photos.html or site2/photos.html?