Forum Discussion
lori_54451
Nimbostratus
May 01, 2007Using iruel for redirects
I just inherited a web hosting farm that is experencing issues contolling thier targeted urls within thier web application. They have been living with this issue in thier previous hosting site for 2-3...
lori_54451
Nimbostratus
May 02, 2007here is the classi amusing for testing
class TURL_List {
"www.thermo.com/centrifugation http://www.thermo.com/cda/category/category_lp
/0,2152,53,00.html"
"www.thermo.com/histology http://www.thermo.com/com/cda/category/category_lp/
0,2152,211,00.html"
}
here is the irule
when HTTP_REQUEST {
set req "[HTTP::host]/[getfield [HTTP::uri] "/" 2]"
set redir [findclass $req $::TURL_List]
if {$redir !=""}{
HTTP::redirect $redir
}
}
when i hit www.thermo.com, i get this malformed http request
http://www.thermo.com/histology%20http://www.thermo.com/com/cda/category/category_lp/0,2152,211,00.html
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