Stacy_Lanier_53
Jul 28, 2008Nimbostratus
301 Redirect
I am trying to throw a URL redirect for a specific UserAgents in a file when a specific URL is entered by the user.
when HTTP_REQUEST {
if { ([matchclass [HTTP::header value User-Agent] equals $::user_agents]) and \
[HTTP::uri] equals "http://internalURL/www.craigslist.org"}
HTTP::respond 301 Location "http://www.craigslist.org[HTTP::uri]"
}
Can anyone see what I am doing wrong?
Thanks