Results 1 to 2 of 2
Thread: PATH_INFO and document base
Nov 3, 2003, 00:02 #1
PATH_INFO and document base
I'm working on my first attempt to use URIs like so:
rather than www.site.com/site.php?var1=val1&var2=val2
The problem with this is that all the relative image URIs on the page are evaluated relative to site.com/site.php/ rather than site.com/
I can fix this with the <base> tag, but I'm wondering if it can't be addressed with a HTTP header. I've been playing with Base, Content-Location, and Content-Base headers, all to no avail.
Has anyone else solved this problem in this manner? Or some other way besides the <base> tag?
Nov 5, 2003, 12:22 #2
- Join Date
- Oct 2002
- 0 Post(s)
- 0 Thread(s)
Hmm, don't know if this is informing but if you start the path to image/file with a forwardslash (/) it will begin at the document root.
in the file www.example.com/some/path/file.php I have two urls, the first one points to
image.png and the other to
the real location of the image.png in the first example would be
and in the second example it would be
Hope this helps!- website