Simple redirect to correct a URL

Kari Cowan KCowan at alm.com
Fri Jan 6 02:01:04 CET 2017


I'm sure I must be doing something hair-brained ... shouldn't this work in V5?

if (req.url~ "^/type/news?$") {
   return (synth (750,"http://" + req.http.Host + "/news/"));
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20170106/b918f7cd/attachment.html>


More information about the varnish-dev mailing list