Forum Discussion
supportrsd_1762
Nimbostratus
Jan 15, 2015Rewrite
Hello I need to rewrite a url for a webapplication (that is accsed with a apm portal) from a absolute url to relative url (for a couple of reason there is no way of changing it in the code that gener...
What_Lies_Bene1
Cirrostratus
Jan 15, 2015OK, could be a few things but lets start with checking both the if and the expression using some logging - add this here;
Set a variable so we know to do custom stream rewrite
set strReplace 1
log local "Request matches, setting replace variable"
This here;
when HTTP_RESPONSE {
if { [info exists strReplace] && $strReplace && [HTTP::header "Content-Type"] contains "html" } {
log local "Variable exists, variable is set to 1 and content type contains html"
If we hit your "Match1" log statement after the first two we know its the stream expression. I must say it looks rather complex.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects