Forum Discussion
dwhite12_255934
Nimbostratus
Jul 28, 2016Need assistance creating an iRule to modify a URI
If the following path is detected the F5 should change the URI to append /EXAMPLE to the beginning:
/TestProcess.php
Corrected URI would be: /example/TestProcess.php
Thanks.
Vijay_E
Cirrus
Jul 28, 2016This will change the URI and send it to server:
when HTTP_REQUEST {
if { [HTTP::uri] eq "/TestProcess.php" } {
HTTP::uri /example[HTTP::uri]
}
}
This will send a redirect to the client asking them to request the resource again:
when HTTP_REQUEST {
if { [HTTP::uri] eq "/TestProcess.php" } {
HTTP::respond 301 Location "http://[HTTP::host]example[HTTP::uri]"
}
}
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
