Forum Discussion
Bob_10976
May 12, 2008Nimbostratus
iRule re-write to replace ISAPI re-write
Hello all...
We are currently using ISAPI re-write in our portal to re-write uri's to the appropriate location. With the help of this forum I came up with the following, which work...
Xin_99652
Oct 10, 2008Nimbostratus
Hi there,
Actually, mycompany.com and www.mycompany.com are different site header, same IP for the same site (same pool in F5). Currently users can access the site by both URLs, but we are asked convert all mycompany.com to www.mycompany.com. So we need modify mycompany.com to www.mycompany.com.
I don't think my iRules are correct, could you help me?
thanks
when HTTP_REQUEST {
switch [HTTP::host] {
www.mycompany.com { pool pl_www_mycompany_com }
mycompany.com { HTTP::redirect "http://www.mycompany.com[HTTP::uri]"
pool pl_www_mycompany_com }
default { reject }
}
}
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