Forum Discussion
chandu_naveen
Nimbostratus
Jul 16, 2019need a irule for https url redirection.
Setup redirection to the default login page of this url. Whenever someone hits the below URL - https://abc.com needs to be redirected to https://abc.com/NextGene/login.html
Sajid
Cirrostratus
Jul 20, 2019try this
when HTTP_REQUEST {
if { ( [string tolower [HTTP::host]] equals "abc.com") } {
HTTP::redirect "https://abc.com/NextGene/login.html"
}
}
or
when HTTP_REQUEST {
switch -glob [HTTP::host] {
"abc.com" {
HTTP::redirect "https://abc.com/NextGene/login.html"
}
}
default { }
}
Mapped iRule on HTTPS VS
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