You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by co...@apache.org on 1999/03/24 00:19:59 UTC
Re: mod_rewrite/3140: Substitution does not support some schemes
[In order for any reply to be added to the PR database, ]
[you need to include <ap...@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED. This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request ]
[from a developer. ]
[Reply only with text; DO NOT SEND ATTACHMENTS! ]
Synopsis: Substitution does not support some schemes
State-Changed-From-To: open-feedback
State-Changed-By: coar
State-Changed-When: Tue Mar 23 15:19:57 PST 1999
State-Changed-Why:
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]
What would you expect it to do, and what does it do instead?
Re: mod_rewrite/3140: Substitution does not support some schemes
Posted by Klaus Johannes Rusch <Kl...@atmedia.net>.
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 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
--
KlausRusch@atmedia.net
http://www.atmedia.net/KlausRusch/