All,
My client had Aaron Hooley assist with creating data group 301 redirects, however, the initial url product is being picked up by the apache http class. I tried doing http:class disable, but apache is still fielding the request causing a 404. I would imagine that the 301 redirect would kick in to feed weblogic. Any ideas?
Thanks,
Bryce
Data Group 301s
“www.foo.com/product.asp?SKU=100151” := “301 http://www.foo.com/store/product/duracell-battery-packs/100151”,
“www.foo.com/product.asp?SKU=11916015” := “301 http://www.foo.com/store/product/anna-griffin-jack-brag-book/1015158565?skuid=11916015”,
“www.foo.com/product.asp?SKU=11839797” := “301 http://www.foo.com/store/product/anna-griffin-jack-photo-journal/1015158514?skuid=11839797”,
Existing iRule
when HTTP_REQUEST {
if {[set code_url [class match -value -- [string tolower [HTTP::host][HTTP::uri]] equals datagroup301s]] ne “”}{
HTTP::class disable
HTTP::respond [getfield code_url " " 1] Location [getfield code_url " " 2]
}
}
HTTP Classes
ltm profile httpclass /Common/Weblogic {
app-service none
defaults-from /Common/httpclass
paths { glob:/store glob:/store* glob:/store/* glob:/qas/* }
pool /Common/Weblogic_Pool
redirect none
ltm profile httpclass /Common/Weblogic_STAGING {
app-service none
defaults-from /Common/httpclass
paths { glob:/store glob:/store* glob:/store/* glob:/qas/* }
pool /Common/Weblogic_Pool_STAGING
redirect none
Existing Root Responder irule
ltm rule /Common/BBB_root_res {
when HTTP_REQUEST {
log local0. “Request_uri: [HTTP::uri]”
if { ([HTTP::uri] equals “/”) } {
HTTP::redirect “http://[HTTP::host]/store/”
}