Forum Discussion

DaveC_53879's avatar
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 ""} {


HTTP::redirect ]



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

13 Replies