what about this one?
[root@ve11a:Active:Changes Pending] config tmsh list ltm virtual bar
ltm virtual bar {
destination 172.28.19.252:443
ip-protocol tcp
mask 255.255.255.255
profiles {
clientssl {
context clientside
}
http { }
tcp { }
}
rules {
myrule
}
snat automap
vlans-disabled
}
[root@ve11a:Active:Changes Pending] config tmsh list ltm data-group internal redirection_class
ltm data-group internal redirection_class {
records {
/AboutThisPage {
data /About/Page.aspx
}
/hey/whatsup.aspx {
data /abc/def/example.aspx
}
/page206.aspx {
data /subsite/URI/page.aspx
}
/thisisanoldsite {
data /this/is/the/equivilant/site
}
}
type string
}
[root@ve11a:Active:Changes Pending] config tmsh list ltm rule myrule
ltm rule myrule {
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "example.com" } {
if { [class match -- [HTTP::uri] equals redirection_class] } {
HTTP::respond 301 noserver Location "https://www.example.com[class match -value [HTTP::uri] equals redirection_class]" Connection Close
}
}
}
}
[root@ve11a:Active:Changes Pending] config curl -Ik https://example.com/AboutThisPage
HTTP/1.0 301 Moved Permanently
Location: https://www.example.com/About/Page.aspx
Connection: close
Content-Length: 0