Yeah, unfortunately [PT] seems also seems to prepend DocumentRoot to the beginning of a URL which therefore makes it impossible to Rewrite to something outside this directory.
The weird and wonderful world of mod_rewrite eh?! Mike -----Original Message----- From: Gerald Richter [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 2:56 PM To: Michael Smith; Embperl Subject: Re: embperl after a rewrite > > What I meant was > > RewriteRule ^/foo /docroot/filename.epl > > so that asking for http://servername/filename.epl would give what we want > but asking for http://servername/foo gives us the raw code. > > I've since narrowed it down to EMBPERL_FILESMATCH - so it all seems to work > unless I have PerlSetEnv EMBPERL_FILESMATCH = "epl". > Aah, this make sense. You have to set the PT flag, because EMBPERL_FILESMATCH looks in the uri and not in the filename (the directive has actually a wrong name). The following should work: RewriteRule ^/foo /docroot/filename.epl [PT] Gerald ------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh Internetconnect * Webserver/-design/-datenbanken * Consulting Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: [EMAIL PROTECTED] Voice: +49 6133 925131 WWW: http://www.ecos.de Fax: +49 6133 925152 ------------------------------------------------------------- http://www.iii.co.uk Ample Interactive Investor is a leading UK Internet personal finance service that provides individuals with the capability to identify, compare, monitor and buy online a number of financial products and services. Interactive Investor Trading Limited, a subsidiary of Interactive Investor Ltd, is regulated by the SFA. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
