The RewriteRule directive is the real rewriting workhorse. The directive can occur more than once, with each instance defining a single rewrite rule. The order in which these rules are defined is important - this is the order in which they will be applied at run-time.
In
VirtualHostcontext, The Pattern will initially be matched against the part of the URL after the hostname and port, and before the query string (e.g. "/app1/index.html").In
Directoryand htaccess context, the Pattern will initially be matched against the filesystem path, after removing the prefix that led the server to the currentRewriteRule(e.g. "app1/index.html" or "index.html" depending on where the directives are defined).If you wish to match against the hostname, port, or query string, use a
RewriteCondwith the%{HTTP_HOST},%{SERVER_PORT}, or%{QUERY_STRING}variables respectively.
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.
_______________________________________________
dancer-users mailing list
dancer-users@dancer.pm
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users