Forum Discussion
jklemm2000
Nimbostratus
Jun 16, 2007Need assistance big time
Guys and Gals,
I am trying to do a simple http://owatest.mysite.com to http://owatest.mysite.com/exchange The problem is its not working. Does anyone have an irule handy that can help me??? All help is appreciated.
- Wil_Schultz_101
Nimbostratus
This should do ya:when HTTP_REQUEST { if { ([string tolower [HTTP::host]] == "owatest.mysite.com") and ([string tolower [HTTP::uri]] == "/")} { HTTP::respond 301 \ "Location" "http://owatest.mysite.com/exchange" \ "Server" "mysite.com" } }
- Colin_Walker_12Historic F5 AccountYou could also try the obvious HTTP::redirect command using the same "if" syntax as above.
when HTTP_REQUEST { if { ([string tolower [HTTP::host] ] equals "owatest.mysite.com" ) and ( [ string tolower [HTTP::uri] ] equals "/") } } HTTP::redirect "http://owatest.mysite.com/exchange" } }
- Wil_Schultz_101
Nimbostratus
Posted By Colin on 06/18/2007 12:53 PM
when HTTP_REQUEST { if { ([string tolower [HTTP::host] ] equals "owatest.mysite.com" ) and ( [ string tolower [HTTP::uri] ] equals "/") } } HTTP::redirect "http://owatest.mysite.com/exchange" } }
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