Forum Discussion
ken_wolff_10732
Nimbostratus
May 23, 2007Appending to a request
I think this is simple, but I'm not having any luck so far. Running 9.3 on our LTMs. When I get a request for http://test.com, I need to append /tcr to the end so that http://test.com becomes http://test.com/tcr. FYI-http://test.com resolves in dns but http://test.com/tcr does not. Thanks, Ken
- Here's how you would check for the first case:
when HTTP_REQUEST { if { ([HTTP::host] equals "test.com") && ([HTTP::uri] equals "/") } { HTTP::uri "/tcr" } }
when HTTP_REQUEST { if { "[HTTP::host][HTTP::uri]" equals "test.com/" } { HTTP::uri "/tcr" } }
- ken_wolff_10732
Nimbostratus
Great. This worked fine. Thanks, Ken - My Pleasure!
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