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...
hooleylist
Oct 09, 2008Cirrostratus
Hi there,
Do you want to redirect all requests made to mycompany.com to the same URI on www.mycompany.com? If so, you can check the host header and redirect requests to mycompany.com:
when HTTP_REQUEST {
Check host header
if {[string tolower [HTTP::host]] eq "mycompany.com"}{
Redirect client to www.mycompany.com with the same URI
HTTP::redirect "http://www.mycompany.com[HTTP::uri]"
}
}
Aaron
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