Forum Discussion
Arie
Altostratus
Apr 30, 2008HELP! - what's wrong with this redirect?
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/account" } {
HTTP::redirect https://www.domain2.com[HTTP::uri]
}
}
Apr 30, 2008
A couple of things. First, your first iRule is redirecting to https://www.domain2.com/account*. Have you tested that this URI works on it's own outside of the iRule. Also, I'm assuming that this iRule is NOT on the https virtual for www.domain2.com, otherwise you'll get yourself into a infinite loop.
As for your second iRule working, that one is redirecting to "http://www.domain2.com/...", which is NOT the https VS that the first iRule is redirecting to. Was this intentional?
I would try the redirected URIs manually and see if they work. It could be that the server error is coming from the www.domain2.com server after the browser has been redirected.
As hoolio said, if you could pass along the setup of which virtuals are what and which ones have the iRules on them, it will take some of the guessing out on our part.
-Joe
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
