Ganesh_Garg
Jun 29, 2015Nimbostratus
redirect URL via IRULE
I have a requirement, if user access https://abc.company.com:50032/ it gets redirected to https://abc.company.com:50012/ajaxmaps-2.8.0/
Any idea how to achieve this?
I have a requirement, if user access https://abc.company.com:50032/ it gets redirected to https://abc.company.com:50012/ajaxmaps-2.8.0/
Any idea how to achieve this?
iRule redirect can be done like this (and I think that if port is specified it's included in the
HTTP::host
variable, so this should work).
when HTTP_REQUEST {
if {[string tolower "[HTTP::host][HTTP:path]"] equals "abc.company.com:50032/"} {
HTTP::respond 302 Location "https://abc.company.com:50012/ajaxmaps-2.8.0"
}
}
Thanks, I'll let you know the results once I done testing it in LAB.