Forum Discussion
Ankur_5273
Nimbostratus
Jun 11, 2014Rewrite the content in URI with a short URL
Hi Experts
I need assistance on shortening of URL as follows
If a web page with following Source URL is browsed , then a part of URI (highlighted in bold) should be converted to "en" (whi...
Kevin_Davies_40
Nacreous
Jun 14, 2014Is this what you want? Or is it when they click on http://www.myweb.com/en/XYZ they get the webpage at http://www.myweb.com/secureapp/connect/report_en/REP/XYZ instead?
If thats what you are after then thats rather simple.
when HTTP_REQUEST {
log local0. "..in HTTP_REQUEST"
if {[class match [HTTP::uri] equals myuri]} {
HTTP::uri [class match -value [HTTP::uri] equals myuri]
}
}
Using class myuri
Name Value
/en /secureapp/connect/report_en/REP/XYZ