This only replaces links that start with “/css/”. However, I would also like to replace links that start with other directories, such as “/img/” or “/js/”. Is there a way to add multiple patterns to this directive, or to provide the pattern in such a way that it can match other directories?
Try do define multiple nested tags with needed patterns.
Content to apply the tags to
On the other hand recent versions of PD4ML are able to resolve absolute web paths via ServletContext. I would recommend to add debug=”true” to and ispect STDOUT what it tries to load and whether the URLs are correct.