Re: [Zope] Apache mod_rewrite module...

2000-05-22 Thread Pierre Rougier
My URL references to Apache example: http://margo.pla.fr/intra/machin.html and I want to use httpd.conf to transform it (only for html and htm files) in http://margo.pla.fr/intra/?machin.html (which is my ZServer) Does someone know the rewrite I sould use regular

Re: [Zope] Apache mod_rewrite module...

2000-05-22 Thread mindlace
Pierre Rougier wrote: The problem is that by doing that, as in the HTML pages, paths are relatives, the redirection change all the relative address to the port 8080 (because the final served URL is on this port), and I want my Images to be served by apache What I think you need to do

Re: [Zope] Apache mod_rewrite module...

2000-05-22 Thread mindlace
mindlace wrote: What I think you need to do is use SiteAccess so that it strips out the port. You can use an access rule like so: dtml-let basename="_.string.join(_.string.split(HTTP_HOST, ':')[-2:-1])" dtml-call "REQUEST.set('SiteRootBASE','http://'+basename)" /dtml-let You may have