Forum Discussion
Ganesh_Garg
Nimbostratus
Jun 29, 2015redirect URL via IRULE
I have a requirement, if user access https://abc.company.com:50032/ it gets redirected to https://abc.company.com:50012/ajaxmaps-2.8.0/
Any idea how to achieve this?
Michael_Jenkins
Cirrostratus
Jun 29, 2015iRule redirect can be done like this (and I think that if port is specified it's included in the
HTTP::host variable, so this should work).
when HTTP_REQUEST {
if {[string tolower "[HTTP::host][HTTP:path]"] equals "abc.company.com:50032/"} {
HTTP::respond 302 Location "https://abc.company.com:50012/ajaxmaps-2.8.0"
}
}
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