Hi,
your irule is so long...
it seems your have only a few redirect URLs, you can use a switch command instead of a array...
when HTTP_REQUEST {
Check the requested HTTP path
switch [string tolower [HTTP::host]] {
"www.alfasite.se" {
switch [string tolower [HTTP::path]] {
"/1011-inspiration-sign.aspx" -
"/11/10-spectacular-hair-show-at-selma-cityspa.aspx" -
"/11/12-dance,-dance,-dance!.aspx" {HTTP::respond 301 Location "https://www.existingsite.se/alfa/alfasite/featured-amenities/living-room/"; return}
"/105-girls-night-at-selma-cityspa.aspx" {HTTP::respond 301 Location "https://www.existingsite.se/alfa/alfasite/featured-amenities/living-room/"; return}
default {}
}
}
"www.alfasite.com" {
switch [string tolower [HTTP::path]] {
"/meeting.aspx" -
"/pictures-conference.aspx" {HTTP::respond 301 Location "https://www.existingsite.com/alfa/alfasite/conference-in-stockholm/"; return}
"/enlivingroom.aspx" -
"/livingroom_juli.aspx" -
"/13/11-living-room---traning.aspx" -
"/284-livingroom-by-juiceboy--swingkid.aspx" {HTTP::respond 301 Location "https://www.existingsite.com/alfa/alfasite/featured-amenities/living-room/"; return}
default {}
}
}
}
The minus character at the end of line is to do the same command for multiple statements.
the return command is to quit the irule