2 <metaproxy xmlns="http://indexdata.com/metaproxy" version="1.0">
6 <filter type='http_rewrite'>
11 from='(?<proto>https?://)(?<pxhost>[^ /?#]+)/(?<pxpath>[^ /]+)/(?<host>[^ /]+)(?<path>[^ ]*)'
12 to='${proto}${host}${path}' />
13 <rewrite from='(?:Host: )(.*)' to='Host: ${host}' />
15 <content type="headers">
16 <within header="link" rule="null"/>
17 <within reqline="1" rule="url"/>
20 <response verbose="1">
23 <rewrite from='foo' to='bar'/>
24 <rewrite from='^cx' to='cy'/>
26 from='(?<proto>https?://)(?<host>[^/?# "'>]+)/(?<path>[^ "'>]+)'
27 to='${proto}${pxhost}/${pxpath}/${host}/${path}' />
29 <content type="headers">
30 <within header="link" rule="url"/>
32 <content type="html" mime="text/xml|text/html">
33 <within tag="body" attr="background" rule="null"/>
34 <within tag="script" attr="#text" type="quoted-literal" rule="url"/>
35 <within tag="style" attr="#text" rule="url"/>
36 <within attr="href,src" rule="url"/>
37 <within attr="onclick" type="quoted-literal" rule="url"/>
39 <content type="quoted-literal" mime=".*javascript">