"<filter xmlns='http://indexdata.com/metaproxy'\n"
" id='rewrite1' type='http_rewrite'>\n"
" <request>\n"
- " <rewrite from='"
+ " <rule name=\"url\">\n"
+ " <rewrite from='"
"(?<proto>https?://)(?<pxhost>[^ /?#]+)/(?<pxpath>[^ /]+)"
"/(?<host>[^ /]+)(?<path>[^ ]*)'\n"
" to='${proto}${host}${path}' />\n"
- " <rewrite from='(?:Host: )(.*)'\n"
- " to='Host: ${host}' />\n"
+ " <rewrite from='(?:Host: )(.*)'\n"
+ " to='Host: ${host}' />\n"
+ " </rule>\n"
+ " <within rule=\"url\"/>\n"
" </request>\n"
" <response>\n"
- " <rewrite from='"
+ " <rule name=\"url\">\n"
+ " <rewrite from='"
"(?<proto>https?://)(?<host>[^/?# "'>]+)/(?<path>[^ "'>]+)'\n"
" to='${proto}${pxhost}/${pxpath}/${host}/${path}' />\n"
+ " </rule>\n"
+ " <within rule=\"url\"/>\n"
" </response>\n"
"</filter>\n"
;