Forum Discussion
Mask 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 { if { [HTTP::host] equals "; } { HTTP::redirect "/append" } } Any Ideas?
2 Replies
- jgranieri
Nimbostratus
have you tried to use HTTP Local policies which make it easier than writing an irule?
- Vijay_E
Cirrus
1.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
* 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