Forum Discussion
Tony_Lee_73702
Nimbostratus
Oct 13, 2005HTTP rewrite for lots of URLs
Hi all,
I've got a pair of 3400s running 9.0.5. I've created a HTTP-based VS load balancing traffic against a handful of IIS servers.
I'm in a web hosting environment and I've g...
Tony_Lee_73702
Nimbostratus
Oct 28, 2005This is a follow-on to my previous question...
I did used the following iRules to do the HTTP redirect and it worked.
when HTTP_REQUEST {
set debug "1"
set http_host [HTTP::host]
if {[string equal -nocase $http_host "www.foo.com"]} {HTTP::redirect "http://192.168.1.1/foo[HTTP::uri]"; if $debug {log local0. "redirect --- http://192.168.1.1/foo[HTTP::uri]"}}
}
The problem is that the result is as follows:
http://www.foo.com/ ---> http://192.168.1.1/foo
But I really want the following:
http://www.foo.com/ ---> http://www.foo.com/foo
Any help or pointers would be greatly appreciated.
Cheers, AJ
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