Hi Scott,
I did add some protection into this iRule that will prevent an endless loop if you put this iRule on both the HTTP and HTTPS Virtual Server. It will check to see if "/pdf" exists anywhere in the URI and verify that the local port that the request came in on was 443. If both qualify it will redirect you to your HTTP Location.
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] contains "/pdf" && [TCP::local_port] == 443 } {
HTTP::redirect "http://[getfield [HTTP::host] ":" 1]/pdf/[URI::basename [HTTP::uri]]"
}
}
Hope this helps.