Forum Discussion
Pete_02_141055
Nimbostratus
Jan 13, 2017Mask Url....
I need to send to but it needs to stay the former. When i add anything to redirect I on the https virtual server I get to many redirects.
The last thing i tried was:
when HTTP_REQUEST...
Vijay_E
Cirrus
Jan 13, 20171.The best option in my opinion is to identify the overlapping redirects and remove it and make sure that the client & the server see the same URL. I haven't been able to understand the need for masking URL as a Network guy.
2.If you still insist on masking, try something like this:
when HTTP_REQUEST {
if { ([HTTP::host] equals "www.xyz.com") and ([HTTP::uri] eq "/") } {
HTTP::uri "/append"
}
}
when HTTP_RESPONSE {
if { [HTTP::header values Location] contains "/append" } {
HTTP::header replace Location [string map {/append /} [HTTP::header value Location]]
}
}
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