Mikesisav
Oct 01, 2020Altostratus
irule for request and response
All,
Looking to irule a request and response header edit for https://example.com/x/y
So, that when user inputs https://example.com/x/y , request is sent to server as https://example.com/y
Anything input into y as a string is request to server.
I have created this:
when HTTP_REQUEST {
if { [HTTP::path] equals "/x/y" }{
HTTP::redirect "/y/"
}
}
This returns above irule https://example.com/y . but, the ask is to add x back to the response and return https://example.com/x/y to the user.
The parts I am working on now are the response edit and how to use the string input by the user - y - to reflect anything. Similarly, to x when responding back.