Forum Discussion
Albert__Tase_70
Nimbostratus
Feb 02, 2010re writing the url
ok I have looked into this and need some help
the customer wants to go to one url get redirect to another which in turn gets redirected to a third on https and wants the url the customer sees...
hoolio
Cirrostratus
Feb 10, 2010Hi Al,
Can you clarify what you're trying to accomplish? Do you want LTM to send an HTTP redirect to the client with a new host and/or URI? You can do this using HTTP::redirect or HTTP::respond. Doing so would update the URL displayed in the address bar to the new location that is sent in the redirect.
You could also rewrite the host and/our URI transparently on LTM before sending the request to the pool This would not be seen by the client and the address bar would not be updated, unless the application dynamically includes references to the requested host and/or URI in it's response headers or content.
Another option would be to have LTM rewrite the host and/or URI in redirects that the application sends to clients. You can do this by checking for redirects with HTTP::is_redirect and rewriting the Location header with HTTP::header replace Location $new_location.
If you can clarify what is happening now and what you need to implement, we can help you write an iRule to do it.
Thanks,
Aaron
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
