Hi
I am generating web content in my web page, and the organization system I have requires I use "partially absolute URLs". What I mean by this is they are not relative, but not completely absolute. Basically, every image and css url starts with a '/' so it is relative to the domain.
This does not seem to work with Prince as the beginning slash means to look in the root of the filesystem, not of a web directory! Also, specifying the base-url as "http://mydomain/" does not work, mainly because I the urls are not relative and only uses the base-url when relative.
The not-so-good solutions I have for this at the moment include:
I hope there is a better way than that!
Thanks,
Jeff
I am generating web content in my web page, and the organization system I have requires I use "partially absolute URLs". What I mean by this is they are not relative, but not completely absolute. Basically, every image and css url starts with a '/' so it is relative to the domain.
This does not seem to work with Prince as the beginning slash means to look in the root of the filesystem, not of a web directory! Also, specifying the base-url as "http://mydomain/" does not work, mainly because I the urls are not relative and only uses the base-url when relative.
The not-so-good solutions I have for this at the moment include:
- Performing some complex regexp on the HTML to find all these URLs and replace them with completely absolute URLs
- Creating symbols links in the root directory of the filesystem to all necessary folders and files
I hope there is a better way than that!
Thanks,
Jeff