Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 86095 invoked from network); 30 Aug 2007 15:51:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Aug 2007 15:51:41 -0000 Received: (qmail 76330 invoked by uid 500); 30 Aug 2007 15:51:22 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 76308 invoked by uid 500); 30 Aug 2007 15:51:22 -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 76282 invoked by uid 99); 30 Aug 2007 15:51:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Aug 2007 08:51:22 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jslive@gmail.com designates 209.85.146.183 as permitted sender) Received: from [209.85.146.183] (HELO wa-out-1112.google.com) (209.85.146.183) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Aug 2007 15:51:18 +0000 Received: by wa-out-1112.google.com with SMTP id k22so576309waf for ; Thu, 30 Aug 2007 08:50:57 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=RQbI+9mGEyE+bO5MwCqvWxSR8mDTruU9l7yqhOX5Q+vImph/lu7PnNmyWkW1JDYRVcX+l5Jg6BxPEIvz5tCwSqvANu7hSuEjXSPGRAvqJQEOajAGTYLdWvAAD1i0PRsdTQdOPqMw8h9+A2GJx/KkOf9wBBXLC6muJY+9fFfT1iI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=RuxMpuyQ6rBl2DDk6AuDyxAQZxKtANnWK2eVASGV2VTq55K+7UCyelF0eb9sBOo0esL98wjoUxDId3s95LJMfNTtA91109h45BJwXuvbagGZO0pai1lqPFTHwSP/yk4ruivSkkI5Fklm6yiO+YNeASwNvbbrXn764Q7YTmiVeIo= Received: by 10.114.210.2 with SMTP id i2mr9148wag.1188489057083; Thu, 30 Aug 2007 08:50:57 -0700 (PDT) Received: by 10.114.53.4 with HTTP; Thu, 30 Aug 2007 08:50:57 -0700 (PDT) Message-ID: Date: Thu, 30 Aug 2007 11:50:57 -0400 From: "Joshua Slive" Sender: jslive@gmail.com To: users@httpd.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Google-Sender-Auth: df6916159d52c2db X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] ErrorDocument 404 redirect with server response code issue On 8/30/07, Steve Finkelstein wrote: > Hi all, > > I'm trying to redirect users to my base URL upon a 404 submission. According > to Apache's documentation, the method I'm using is not sufficient: > > Note that when you specify an ErrorDocument that points to a remote URL (ie. > anything with a method such as http in front of it), Apache will send a > redirect to the client to tell it where to find the document, even if the > document ends up being on the same server. This has several implications, > the most important being that the client will not receive the original error > status code, but instead will receive a redirect status code. > > I'd send like use proper headers, send a 404 to the client, then redirect > them to my base URL. > > Is this possible? Should I resort to mod_rewrite versus ErrorDocument? No, it's not possible. This is just the way HTTP works. You either get an error code (404) or you get a redirect code (30x), you can have both. As a design issue, I suggest making a proper 404 page and simply providing an obvious link on this page back to your home page. This is clearer both for real users and for robots. If you really want to, you can create a 404 error page that uses a refresh in the html to take you back to the homepage. But this would be ugly and annoying. Joshua. --------------------------------------------------------------------- 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