Forum Discussion
Cindy_127211
Nimbostratus
Aug 16, 2006Rewriting Hostname & URI on HTTP_Request without a 'redirect'
I would like to 'rewrite' the following hostname/uri:
http://www.website1.com/index.php?cid=1234
to
http://www.website2.com/app1/index.php?cid=1234
without usin...
Cindy_127211
Nimbostratus
Aug 16, 2006Thanks for your help with this. I am now able to resolve the 'host' name to the new name with the following statement.
HTTP::header replace "Host" "www.americancentury.com"
HTTP::uri $newuri
I also tried the following statement:
when HTTP_REQUEST_SEND {
log local0. "New URL is [HTTP::host][HTTP::uri]"
}
...but, I am getting an error in the 'ltm' log on this:
Aug 16 08:56:25 tmm tmm[672]: 01220001:3: TCL error: Rule lvsredirect_w_cid_test - Illegal argument. Invalid server side API (line 1) invoked from within "HTTP::uri"
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
