Unfortuantely, the resource URL is hardcoded, so you would have to override the renderer and inject your custom class in faces-config.xml. I'm afraid that urlrewrite will not help you here because the renderer is implemented as follows:
public static final String GRAPHIC_IMAGE_RESOURCE_PATH = "/seam/resource/graphicImage"; writer.startElement(HTML.IMG_ELEM, graphicImage); String url = context.getExternalContext().getRequestContextPath() + GraphicImageResource.GRAPHIC_IMAGE_RESOURCE_PATH + "/" + key + extension; writer.writeAttribute(HTML.SRC_ATTR, url, HTML.SRC_ATTR); ... writer.endElement(HTML.IMG_ELEM);
I encourage you to override it. Follow a JSF component tutorial to do so (if you aren't familiar with the process). Then you can choose the resource path as you need it and map it as such in web.xml.