The following reply was made to PR mod_rewrite/3140; it has been noted by GNATS.

From: Klaus Johannes Rusch        <[EMAIL PROTECTED]>
To: apache-bugdb@apache.org, [EMAIL PROTECTED], [EMAIL PROTECTED]
Cc:  Subject: Re: mod_rewrite/3140: Substitution does not support some schemes
Date: Wed, 24 Mar 1999 10:01:04 CET

 Synopsis: Substitution does not support some schemes
 State: open
 
 : Please give an example of a URL you would expect to trigger
 : the rewrite rule:
 :
 :   RewriteEngine On
 :   RewriteRule ^/mail mailto:[EMAIL PROTECTED] [R,L]
 
 http://localhost/mail (probably with some RewriteCond in the
 configuration but for reproducing the problem this is not required)
 
 : What would you expect it to do, and what does it do instead?
 
 I would expect a redirect, i.e. Status 302 and
 Location: mailto:[EMAIL PROTECTED] headers, to be sent as for equivalent 
 RewriteRules with other schemas, instead mod_rewrite searches for
 ${DOCUMENT_ROOT}/mailto:[EMAIL PROTECTED] and not finding that document 
 sends a 404 Not Found.
 
 RewriteRule ^/mail http://www.domain.com/redirect.pl?url=mailto:[EMAIL 
PROTECTED] works okay.
 
 hook_uri2file has a hardcoded list of schemas (http://, https://, gopher://, 
 ftp://), all other schemas are interpreted as local files (including common 
 ones like file:, news:, mailto: and ldap: but also any other schema).
 
 
 Klaus Johannes Rusch
 --
 [EMAIL PROTECTED]
 http://www.atmedia.net/KlausRusch/

Reply via email to