Forum Discussion
Joe_Pena
Nimbostratus
Feb 06, 2018redirecting hostname to proper URI path
I was asked to create a redirect whenever a client types this into their browser, omsqa.domain.com redirect it to http://omsqa.tbccorp.com/isccs/isccs/login.do. My irule seems to perform the redirect...
Stanislas_Piro2
Cumulonimbus
Feb 06, 2018AMG provided the best solution. I also recommend to use HTTP::path instead of HTTP::uri in condition and to redirect to relative URI / absolute path (beginning with /) instead of absolute URL:
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] eq "omsqa.tbccorp.com" && [HTTP::path] eq "/"} {
HTTP::redirect "/isccs/isccs/login.do"
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
