Forum Discussion
atoth
Cirrus
May 01, 2015Writing and Rewriting a URI
I've got a vip similar to the below.
when HTTP_REQUEST {`
switch -glob [HTTP::path] {
"/a/b/c" -
"/blah/blah/blah" {
HTTP::header replace "Host" "internal.domain.com"
pool redirect-pool
snat aut...
nitass
Employee
May 02, 2015What the customer would like to do now is rewrite "/blah/blah/blah" to either "/a/b/c" or "/"
you can change (rewrite) uri sending to server (pool member) by using HTTP::uri command.
HTTP::uri
https://devcentral.f5.com/wiki/iRules.HTTP__uri.ashx
when the traffic returns, rewrite the uri to what it was originally.
response does not have uri. uri is in request.
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