[dancer-users] Perl Dancer Rewrite url

Hugues hugues at max4mail.com
Thu Oct 22 16:49:17 BST 2015


Hello
I use perl dancer with Apache in mod_proxy + starman.pl


  ProxyPass / http://localhost:5002/ retry=0 Keepalive=on
  ProxyPassReverse / http://localhost:5002/

I've got path like
/website/about
/website/contact
etc..;

for www.mydomain.com
I would like to rewrite url

/about
/contat
etc..

I try with

RewriteRule ^/website/(.*) /
RewriteRule ^/(.*) http://localhost:5002/$1 [P]


but result is no good, I go to /....

if someone has a idea ?
Thanks

Hugues.


More information about the dancer-users mailing list