Forum Discussion
Chuck_13207
Nimbostratus
Aug 10, 2012Problem figuring out how to rewite what is sent to pool
I have a link that I want to be minus a directory when it is sent to the pool.
The issue is this:
The user clicks on a link like this:
https://fqd n/tr1/W.aspx?L=Nb8PMkM ...
Brian_69413
Nimbostratus
Aug 10, 2012I was thinking about something like this, but it is for the simplest case and is not tested:
when HTTP_REQUEST {
set pathvar [HTTP::path]
string map {"/tr1" ""} $pathvar
HTTP::path $pathvar
}
There is a lot to consider though...
-Would /tr1 show up anywhere else in a URL that is valid?
-Should the user see the new path in their address bar or not?
-Do we need to do this for every case or should there be some logic?
Hope that helps...
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