<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 22, 2015 at 6:11 PM, Hugues <span dir="ltr"><<a href="mailto:hugues@max4mail.com" target="_blank">hugues@max4mail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hello<br>
<br>
see my rewrite log<br>
<br>
init rewrite engine with requested uri /website/about<br>
applying pattern '^/website/(.*)' to uri '/website/about'<br>
rewrite '/website/about' -> '/'<br>
applying pattern '^/(.*)' to uri '/'<br>
rewrite '/about' -> '<a href="http://localhost:5002/about" target="_blank">http://localhost:5002/about</a>'<br>
forcing proxy-throughput with <a href="http://localhost:5002/about" target="_blank">http://localhost:5002/about</a><br>
go-ahead with proxy request proxy:<a href="http://localhost:5002/about" target="_blank">http://localhost:5002/about</a> [OK]<br>
<br>
but /about route do not existe, this is /website/about and I've got
a 404...<br></div></blockquote><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">
<br>
It seems like Rewrite Rules is not a possible ( or if I create fake
routes /about....)</div></blockquote><div><br></div><div><br></div><div>So, what are you trying to do:</div><div><br></div><div>1 map <a href="http://mydomain.com/website/(.*)">http://mydomain.com/website/(.*)</a> to <a href="http://localhost:5002/$1">http://localhost:5002/$1</a> ? </div><div>2 map <a href="http://mydomain.com/website/(.*)">http://mydomain.com/website/(.*)</a> to <a href="http://localhost:5002//website/$1">http://localhost:5002//website/$1</a> ? <br></div><div>3 map <a href="http://mydomain.com/website/(.*)">http://mydomain.com/website/(.*)</a> to <a href="http://localhost:5002/$1">http://localhost:5002/$1</a> ? </div><div>4 map <a href="http://mydomain/(.*)">http://mydomain/(.*)</a> to <a href="http://localhost:5002/website/$1">http://localhost:5002/website/$1</a> ? </div><div><br></div><div>Also you can easily change the prefix of the whole Dancer application by using the prefix feature, see the cookbook examples.<br></div><div><br></div></div></div></div>