Forum Discussion
https redirect issue with v14
Will you be able to share the full original irule here? The coee you have posted has syntax errors and does not have 18 lines.
when HTTP_REQUEST {
if { ( [string tolower [HTTP::host]] equals "www.abc.example.com") } {
HTTP::redirect "https://abc.example.com[HTTP::uri]"
}
if { ( [string tolower [HTTP::host]] equals "www.def.example.com") } {
HTTP::respond 301 Location "https://def.example.com[HTTP::uri]"
}
if { ( [string tolower [HTTP::host]] equals "www.ghi.example.com") } {
HTTP::respond 301 Location "https://ghi.example.com[HTTP::uri]"
}
if { ( [string tolower [HTTP::host]] equals "www.jkl.example.com") } {
HTTP::respond 301 Location "https://jkl.example.com[HTTP::uri]"
}
if { ( [string tolower [HTTP::host]] equals "www.mno.example.com") } {
HTTP::respond 301 Location "https://mno.example.com[HTTP::uri]"
}
if { ( [string tolower [HTTP::host]] equals "www.pqr.example.com") } {
HTTP::respond 301 Location "https://pqr.example.com[HTTP::uri]"
}
if { ( [string tolower [HTTP::host]] equals "www.stu.example.com") } {
HTTP::respond 301 Location "https://stu.example.com[HTTP::uri]"
}
if { ( [string tolower [HTTP::host]] equals "www.vwx.example.com") } {
HTTP::respond 301 Location "https://vwx.example.com[HTTP::uri]"
}
if { ( [string tolower [HTTP::host]] equals "www.yza.example.com") } {
HTTP::respond 301 Location "https://yza.example.com[HTTP::uri]"
}
if { ( [string tolower [HTTP::host]] equals "www.sas.example.com") } {
HTTP::respond 301 Location "https://sas.example.com[HTTP::uri]"
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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