Using HTTP::redirect will send a 302 redirect back to the client with the Location in the redirect set to whatever you put in quotes. If you want to rewrite the Host header, you can use HTTP::header replace Host “newhost.example.com”:
when HTTP_REQUEST {
Rewrite host header
HTTP::header replace Host "www.static.com"
Rewrite URI?
if {not ([HTTP::uri] starts_with "/images")}{
Prepend /images to the URI
HTTP::uri "/images[HTTP::uri]"
}
}