Forum Discussion
Ashu_2116
Nimbostratus
Jul 05, 2017http redirect i-rule under https VS not working
Hi I am new to i-rule writing. I have 4 urls hosted on one web server. And web server is front ended by Big IP LTM for ssl offloading. Now i want my urls to redirect to /directory when accessing it w...
Stanislas_Piro2
Cumulonimbus
Jul 06, 2017You can use this irule
when HTTP_REQUEST {
if { [HTTP::uri] equals "/"} {
switch [string tolower [HTTP::host]] {
"abc.bbc.com" {HTTP::redirect /mydirectory/}
"def.bbc.com" {HTTP::redirect /yourdirectory/}
"ghi.bbc.com" {HTTP::redirect /newdirectory/}
"jkl.bbc.com" {HTTP::redirect /olddirectory/}
default {HTTP::respond 403 {Bad Hostname}}
}
}
}
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