Abhash_way_1901
Aug 01, 2017Nimbostratus
.com. doesn't redirect but .com does
Hello Everyone,
Quick question regarding a re-direct irule. so we have a requirement to redirect example.com and exampleabc.com to examplexyz.com and this works via the following irule but if append a dot after .com then it doesn't redirect... so example.com. doesn't redirect. we also need it to be a 301 re-direct also we can not use generic host as this is a shared VIP. Any thoughts?
when HTTP_REQUEST { set r_host [HTTP::header "Host"] switch $r_host { "; - "; -
HTTP::respond 301 "Location" "https://www.examplexyz.com"
}
} }