URI Rewrite
Requests coming to:
http://connect.company.com or http://connect.company.com/ or http://connect.company.com/inspiration or http://connect.company.com/inspiration/ should all be rewritten to:
http://connect.company.com/inspiration/default.aspx
For http://connect.company.com/creative or http://connect.company.com/creative/ to http://connect.company.com/creative/default.aspx
For http://connect.company.com/intelligence or http://connect.company.com/intelligence/ to http://connect.grey.com/intelligence/default.aspx
For http://connect.company.com/talent or http://connect.company.com/talent/ to http://connect.company.com/talent/default.aspx
For http://connect.company.com/communities or http://connect.company.com/communities to http://connect.company.com/communities/default.aspx
The irule I have is the following:
when HTTP_REQUEST {
if {([HTTP::uri] equals "/") or ([HTTP::uri] equals "/inspiration" ) or ([HTTP::uri] equals "/inspiration/")} {
HTTP::uri "/inspiration/default.aspx"
}
elseif {([HTTP::uri] equals "/creative") or ([HTTP::uri] equals "/creative" )} {
HTTP::uri "/crative/default.aspx"
}
elseif {([HTTP::uri] equals "/intelligence") or ([HTTP::uri] equals "/intelligence/")} {
HTTP::uri "/intelligence/default.aspx"
}
elseif {([HTTP::uri] equals "/talent") or ([HTTP::uri] equals "/talent/")} {
HTTP::uri "/talent/default.aspx"
}
elseif {([HTTP::uri] equals "/communities") or ([HTTP::uri] equals "/communities/")} {
HTTP::uri "/communities/default.aspx"
}
}
From your perspective, will this do the trick? the reason i am asking is because the iRules statistics dont show much traffic ... not sure if the " elseif " statement will break anything.