Forum Discussion
Drew_24540
Nimbostratus
Aug 04, 2009uri redirect help please
I am trying to use the following Irule to redirect to a URI...but it is not working. any thoughts?
when HTTP_REQUEST {
if {[HTTP::uri] equals {http://start/}} {HTTP::uri {http://start.beazer.com/citrix/xenapp/auth/login.aspx}
}
}
- hoolio
Cirrostratus
Take a quick look at the descriptions for HTTP::host (Click here) and HTTP::uri (Click here) and then give this a try:when HTTP_REQUEST { Check requested host if {[string tolower [HTTP::host]]" eq "start"}{ Check requested URI if {[HTTP::uri] eq "/"}{ Redirect client to new location HTTP::redirect "http://start.beazer.com/citrix/xenapp/auth/login.aspx" } } }
- Drew_24540
Nimbostratus
AWESOME! That did exactly what I needed Hoolio! Thanks for your assist! - Drew_24540
Nimbostratus
DOH! nevermind...changed the 'eq' to 'contains'..
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