<div dir="ltr"><div style>Hi,</div><div><br></div>I think what you want is described in the wiki (see the <span style="background-color:rgb(247,247,247);color:rgb(51,51,51);font-size:13px">req.http.host example):</span><div>
<br></div><div><a href="https://www.varnish-cache.org/trac/wiki/RedirectsAndRewrites">https://www.varnish-cache.org/trac/wiki/RedirectsAndRewrites</a></div><div><br></div><div style>If you want to send a redirect to the browser try something like this:</div>
<div style><br></div><div style><a href="https://www.varnish-cache.org/trac/wiki/VCLExampleRedirectInVCL">https://www.varnish-cache.org/trac/wiki/VCLExampleRedirectInVCL</a><br></div></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">2013/3/22 Raphael Rabelo <span dir="ltr"><<a href="mailto:rabelo@raphaelr.com.br" target="_blank">rabelo@raphaelr.com.br</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi guys!<div><br></div><div>I'm tried to rewrite an url with varnish, and i need the help of yours:</div><div><br></div><div>The URL <a href="http://www.meysite.com/something" target="_blank">www.meysite.com/something</a> redirect to subpage "Something"</div>
<div><br></div><div>but </div><div><br></div><div>the url <a href="http://mysite.com/something" target="_blank">mysite.com/something</a> redirect to home :S</div><div><br></div><div>How can i save all after "/" and rewrite the url with "www" </div>
<div>Ex.</div><div><br></div><div>request url = <a href="http://mysite.com/something" target="_blank">mysite.com/something</a> </div><div>after rewrite = <a href="http://www.mysite.com/something" target="_blank">www.mysite.com/something</a><br>
</div><div><br></div><div>Thanks!</div><div><br></div><div>rabeloo
</div></div>
<br>_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>
Paulo Silva <<a href="mailto:paulojjs@gmail.com">paulojjs@gmail.com</a>>
</div>