Forum Discussion
amritkp789
Nimbostratus
Sep 06, 2018Need some help with iRule for URI redirection.
I have an irule that uses a string-data-group to list the old URIs and new URIs to which it should be redirected to. Here are the details:
ltm data-group internal redir_dgl {
records {
/ {
d...
Kevin_Stewart
Employee
Sep 06, 2018Might I suggest you insert some logging:
when HTTP_REQUEST {
set REDIRECT [class match -value [string tolower [HTTP:uri]]equal redir_dgl]
log local0. "REDIRECT = $REDIRECT"
if { $REDIRECT ne "" } {
log local0. "redirecting to $REDIRECT"
HTTP::respond 301 Location "$REDIRECT"
} else {
log local0. "sending to default pool"
pool $POOL_DEFAULT
}
}
You may be surprised by some of the URLs your getting.
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
