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???...
Wil_Schultz_101
Nimbostratus
Jun 18, 2007Posted By Colin on 06/18/2007 12:53 PM
You 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"
}
}
I'm guessing this is what you're trying though, right? And something still isn't working? Can you provide any more details around the problem you're having?
Thanks,
Colin
The above (HTTP::redirect) will send a 302 (temp), yes?
Both should work, I usually like to use 301's but you are probably correct to use a temporary redirect instead of a permanent in this case.
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