Forum Discussion
Joanna_41630
Mar 11, 2013Nimbostratus
Hello Arie -
Yes you are correct, that is exactly what I am trying to accomplish with the iRule. To answer your questions:
1. Client should not be able to get to the homepage by including the filename unless they bookmark the page.
2 and 3 - I was not going to setup a default pool, I was just going to let the iRule make the decision - do you think I need to have a default pool.
This is an iRule that the web team suggested, I am getting syntax errors so I'm playing around with it to see if i can get it to work.
when HTTP_REQUEST {
Redirect non www traffic to www
if {
([HTTP::host] starts_with "mypage.mycompany.com")
}
{
HTTP::redirect ]
}
Send home page to sharepoint pool
elseif {
([HTTP::uri] matches "/") || ([HTTP::uri]matches "")
}
{
HTTP::redirect http://www.mypage.mycompany.com/sp/
}
Send any traffic with sp to the sharepoint pool
else if {
([HTTP::uri] starts_with "/sp/") || ([HTTP::uri] matches "/sp")
}
{
pool sp_http_pool
}
Send any other traffic to sun java webserver pool
else
{
pool sunjava_http_pool
}
}
Any help is greatly appreciated.
Joanna