04-Sep-2019
07:34
- last edited on
05-Jun-2023
21:44
by
JimmyPackets
Hello,
I´ve a rewrite issue with a internal webpage that I´m publishing with Portal Access. The APM module adds "F5CH=I" to the image path and "F5CH=C" to the css path.
styles.css?F5CH=C
/images/icon-search.png?F5CH=I
I found out that this is a known bug and I created an IRule to fix it.
when HTTP_REQUEST {
set wtType [ACCESS::session data get session.policy.result.webtop.type]
if {[ info exists wtType ] && $wtType == "full" } {
if { !([HTTP::uri] starts_with "/f5-w") && ([HTTP::uri] contains "styles") && ([HTTP::uri] contains "/images") } {
log local0. "===> Before ====> [HTTP::uri] "
HTTP::uri "/f5-w-MASKED_HEX$$[HTTP::uri]"
log local0. " Corrected ====> [HTTP::uri] "
}
}
unset wtType
}
But without any success.
Any suggestions what I´m missing?
04-Sep-2019
08:57
- last edited on
01-Jun-2023
14:47
by
JimmyPackets
Hi Squeak,
I think, you should use "||" operator instead of "&&" operator
when HTTP_REQUEST {
set wtType [ACCESS::session data get session.policy.result.webtop.type]
if { [info exists wtType] && $wtType == "full" } {
if { (not ([HTTP::uri] starts_with "/f5-w")) && (([HTTP::uri] contains "styles") || ([HTTP::uri] contains "/images")) } {
log local0. "====> Before ====> [HTTP::uri] "
HTTP::uri "/f5-w-MASKED_HEX$$[HTTP::uri]"
log local0. "Corrected ====> [HTTP::uri]"
}
}
unset wtType
}