Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 91550 invoked from network); 31 Mar 2010 22:59:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 31 Mar 2010 22:59:49 -0000 Received: (qmail 99408 invoked by uid 500); 31 Mar 2010 22:59:46 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 99390 invoked by uid 500); 31 Mar 2010 22:59:46 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 99382 invoked by uid 99); 31 Mar 2010 22:59:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Mar 2010 22:59:46 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of pc88mxer@gmail.com designates 209.85.217.218 as permitted sender) Received: from [209.85.217.218] (HELO mail-gx0-f218.google.com) (209.85.217.218) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Mar 2010 22:59:38 +0000 Received: by gxk10 with SMTP id 10so447621gxk.10 for ; Wed, 31 Mar 2010 15:59:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:received:message-id :subject:from:to:content-type; bh=tkE2DftTh907WIZTwq/XBa7D8Z/Qf4G/tMGKTpGaMXs=; b=i6TdhyR9/S0bRBmEvgLh9w9nx7Hi/nlbmXcoUL7iP4Z/jm3iJEi2tVtDmRbyNHajgY KMVMvcEKCD6wi3QVV0xHSSyWOAyF1NrIK+6jcdo/OCjY7VJJYrYgOGXJVJHmE5jV7pdc rH8M3K3WxYoEXBYAXYsuIGIRhh0rvswgeuZgo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=jEzR+kNSgjTr2qdOJHUT4JooFQ3QQ4DLZ+w5HcxEeSmpgN73MVi9g1pb/wZvUizHlv 7HpMZcAA450pC4yuxqlDIjeUxY5II3e21lB1nyLPd1phuqOMQ1pDWAYpjmADM/LDT4bQ mW5xYgbArOorYju+ufLW9yGqJ8mh0cBD1xYUk= MIME-Version: 1.0 Received: by 10.90.92.19 with HTTP; Wed, 31 Mar 2010 15:59:16 -0700 (PDT) Date: Wed, 31 Mar 2010 17:59:16 -0500 Received: by 10.90.61.32 with SMTP id j32mr1027673aga.25.1270076356994; Wed, 31 Mar 2010 15:59:16 -0700 (PDT) Message-ID: From: E R To: users@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] getting ErrorDocument to perform a 'hard' redirect Hi everyone, I'd like to have: ErrorDocument 404 /some/local/url perform a hard redirect (i.e. it actually sends a 302 back to the client.) I don't want to specify a full url like this: ErrorDocument 404 http://some.host:8888/some/local/url because I don't want to have to inject the host, port and even http/https into the Apache configuration file. The only way I can think of doing this is through a combination of ErrorDocument and mod_rewrite: ErrorDocument 404 /local-redirect/some/local/url RewriteRule /local-redirect(/.*) $1 [some flags...] Just want to make sure I'm not overlooking something (like % macros which expand to method, host and port of the current request). btw - I'm using Apache 1.3.41 Thanks, ER --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org