Forum Discussion
iRule to redirect a URI to a different node and URI while masking the url to the user
When you say "then rewrite the header to maintain the original URL?" do you want to send the original URL to the destination server? Or are you simply saying that you don't want the client to know you messed with the headers?
If it is the latter, you can just rewrite the HTTP::host and HTTP:uri headers with the new information because the uri is not included in the http response. Something like this:
when HTTP_REQUEST { if { ([HTTP::host] equals "www.xyz.com") && ([HTTP::uri] equals "/a") } { HTTP::host "www.newhost.com" HTTP::uri "/your_new_uri" pool your_pool } }
Hope this helps.
Robert
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