Sean_Gray_14855
Apr 29, 2014Nimbostratus
Redirect and Referer in iRules
Hi everyone, I've got what I'm sure is a very simple problem. I am deprecating a URL and for a period of time want to do a 301 redirect and insert a "Referer" value on the redirected traffic so I can see how much was hitting it. I've got this so far as an iRule but it's throwing errors when I try to save it:
when HTTP_REQUEST { set refer [HTTP::header "Referer"] {HTTP::header insert “Referer” “foo.bar.com”
HTTP::respond 301 Location https://bar.com[HTTP::uri] } }
Thanks for any and all help! Sean