Dixit_18200
Feb 23, 2010Nimbostratus
Help needed for irule issue
Hi,
I have setup two irules for http to https redirection
1st for redirecting the below websites
http://www.acbg.com/ucc
http://www.acbg.com/saleshub
http://www.acbg.com/cct
and the irule i have appiled for this is as below
when HTTP_REQUEST {
if {[HTTP::uri] ends_with "/ucc"} {
HTTP::redirect "https://microsite.accenture.com/ACBG/Solutions/UCandC/Pages/default.aspx"
}
elseif {[HTTP::uri] ends_with "/saleshub"} {
HTTP::redirect "https://microsite.accenture.com/ACBG/Pages/SalesHub.aspx"
}
elseif {[HTTP::uri] ends_with "/cct"} {
HTTP::redirect "https://microsite.accenture.com/ACBG/Solutions/CustomerContact/Pages/default.aspx"
}
}
2nd irule for redirecting below websites
http://www.acbg.com/saleshub/dc
http://www.acbg.com/saleshub/ins
http://www.acbg.com/saleshub/ucc
http://www.acbg.com/saleshub/cct
http://www.acbg.com/saleshub/os
when HTTP_REQUEST {
if {[HTTP::uri] ends_with "/saleshub/ucc"} {
HTTP::redirect "https://microsite.accenture.com/ACBG_SalesHub/solutions/Pages/Outsourcing.aspx"
}
elseif {[HTTP::uri] ends_with "/saleshub/cct"} {
HTTP::redirect "https://microsite.accenture.com/ACBG_SalesHub/solutions/Pages/CCT.aspx"
}
elseif {[HTTP::uri] ends_with "/saleshub/dc"} {
HTTP::redirect "https://microsite.accenture.com/ACBG_SalesHub/solutions/Pages/DataCenterSolutions.aspx"
}
elseif {[HTTP::uri] ends_with "/saleshub/ins"} {
HTTP::redirect "https://microsite.accenture.com/ACBG_SalesHub/solutions/Pages/InfrastructureSolutions.aspx"
}
elseif {[HTTP::uri] ends_with "/saleshub/os"} {
HTTP::redirect "https://microsite.accenture.com/ACBG_SalesHub/solutions/Pages/Outsourcing.aspx"
}
}
however for the below websites the irule is not working properly. When i remove the first irule the below redirection works perfecrtly. Please help
http://www.acbg.com/saleshub/ucc
http://www.acbg.com/saleshub/cct