Forum Discussion
nes_66505
Nimbostratus
Jun 23, 2017Rewrite or redirect in irule
Hi,
We want to create an irule to rewrite "application.company.com" to "application.company.com/toto", but all the irul that we found doesn't work.
Someone can help me?
Regards.
M...
P_K
Altostratus
Jun 23, 2017Try this.
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] eq "application.company.com" && [HTTP::uri] eq "/"} {
HTTP::uri "/toto"
log local0. "redirecting to application.company.com[HTTP::uri]"
}
}
Hope this helps! Let us know if you see issues.
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