Forum Discussion

DaveC_53879's avatar
DaveC_53879
Icon for Nimbostratus rankNimbostratus
Jul 26, 2011

Return a 301 instead of 302

I need my redirects to return a 301 instead if a 302. The Web team is unable to track the rdirected requests because they return a 302. How can I change the rule below to return a 301?

 

 

when HTTP_REQUEST { if { [HTTP::host] starts_with "www."} {

 

HTTP::redirect ]

 

} elseif { [HTTP::host] starts_with "mydomain.com"} {

 

HTTP::redirect ]

 

 

There are more possible redirects in the irule which I've omitted, but they all use the same format. Thanks...