rewriting urls

From: Matt <mattmoran76#gmail.com>
Date: Tue, 27 Oct 2009 18:24:54 +0000


Hi,

I've managed to rewrite urls using the reqrep function but only for urls which are on the same domain.

This works
reqrep ^([^\ ]*)\ /my.xml(.*) \1\ /foo/bar/my.xml\2

but this doesn't seem to
reqrep ^([^\ ]*)\ /my.xml(.*) \1\ http://newdomain.com/foo/bar/my.xml\2

I'd like to use the acl method but I see this only does redirect and not proxying? is this still the case?

In apache I guess i'd just do this:
RewriteRule ^/my.xml$ http://newdomain/foo/bar/my.xml [P,L,QSA]

Couldn't seem to find many examples in the docs that would help on this.

Thanks,

Matt Received on 2009/10/27 19:24

This archive was generated by hypermail 2.2.0 : 2009/10/27 19:30 CET