www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Klaus Johannes Rusch <KlausRu...@atmedia.net>
Subject Re: mod_rewrite/3140: Substitution does not support some schemes
Date Wed, 24 Mar 1999 14:20:01 GMT
The following reply was made to PR mod_rewrite/3140; it has been noted by GNATS.

From: Klaus Johannes Rusch        <KlausRusch@atmedia.net>
To: apache-bugdb@apache.org, coar@apache.org, apbugs@apache.org
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:webmaster@apache.org [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:webmaster@apache.org headers, to be sent as for equivalent 
 RewriteRules with other schemas, instead mod_rewrite searches for
 ${DOCUMENT_ROOT}/mailto:webmaster@apache.org and not finding that document 
 sends a 404 Not Found.
 RewriteRule ^/mail http://www.domain.com/redirect.pl?url=mailto:webmaster@apache.org works
 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

View raw message