<div dir="auto">Not to beat my own drum, but I blogged about this recently: <a href="https://info.varnish-software.com/blog/rewriting-urls-with-varnish-redirection">https://info.varnish-software.com/blog/rewriting-urls-with-varnish-redirection</a><div dir="auto"><br></div><div dir="auto">TL;DR: you need a 30X return code, and to put the new URL in the correct header (location).</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Jan 6, 2017 02:06, "Kari Cowan" <<a href="mailto:KCowan@alm.com">KCowan@alm.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_3081749540537845918WordSection1">
<p class="MsoNormal">I’m sure I must be doing something hair-brained … shouldn’t this work in V5?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">if (req.url~ "^/type/news?$") {<u></u><u></u></p>
<p class="MsoNormal"> return (synth (750,"http://" + req.http.Host + "/news/"));
<u></u><u></u></p>
<p class="MsoNormal">}<u></u><u></u></p>
</div>
</div>
<br>______________________________<wbr>_________________<br>
varnish-dev mailing list<br>
<a href="mailto:varnish-dev@varnish-cache.org">varnish-dev@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev" rel="noreferrer" target="_blank">https://www.varnish-cache.org/<wbr>lists/mailman/listinfo/<wbr>varnish-dev</a><br></blockquote></div></div>