Return-Path: Delivered-To: apache-bugdb-archive@hyperreal.org Received: (qmail 23546 invoked by uid 6000); 24 Mar 1999 14:10:16 -0000 Received: (qmail 23512 invoked from network); 24 Mar 1999 14:10:14 -0000 Received: from out1.ibm.net (165.87.194.252) by taz.hyperreal.org with SMTP; 24 Mar 1999 14:10:14 -0000 Received: from mail.atmedia.net (slip139-92-53-205.vi.at.ibm.net [139.92.53.205]) by out1.ibm.net (8.8.5/8.6.9) with ESMTP id OAA107174; Wed, 24 Mar 1999 14:10:03 GMT Message-Id: <199903241410.OAA107174@out1.ibm.net> Date: Wed, 24 Mar 1999 10:01:04 CET From: Klaus Johannes Rusch Reply-to: Klaus Johannes Rusch X-URL: http://www.atmedia.net/KlausRusch/ To: apache-bugdb@apache.org, coar@apache.org, apbugs@apache.org Subject: Re: mod_rewrite/3140: Substitution does not support some schemes In-Reply-To: <19990323231959.15099.qmail@hyperreal.org> References: <19990323231959.15099.qmail@hyperreal.org> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT X-Mailer: OS/2 Warp/4.0 LaMail/2.3 Sender: apache-bugdb-owner@apache.org Precedence: bulk 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/