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...
Colin_Walker_12
Feb 04, 2010Historic F5 Account
If you're trying to rewrite the response without the user seeing a redirect then the HTTP::uri command won't quite get you there, as it won't rewrite a response URI, just a request URI. What you'd need to do is use the HTTP::header command to rewrite the locaiton.
You can do this with the "HTTP::header replace" command. If you wanted to send a location of www.bob.com you could do:
when HTTP_RESPONSE {
HTTP::header replace location "http://www.bob.com"
}
This is obviously a very basic example, but that's the command you're looking for, I think.
Colin
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
