Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 11627 invoked from network); 13 Oct 2004 13:01:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 13 Oct 2004 13:01:59 -0000 Received: (qmail 17982 invoked by uid 500); 13 Oct 2004 13:00:48 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 17893 invoked by uid 500); 13 Oct 2004 13:00: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: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 17756 invoked by uid 99); 13 Oct 2004 13:00:45 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of jslive@gmail.com designates 64.233.170.196 as permitted sender) Received: from [64.233.170.196] (HELO mproxy.gmail.com) (64.233.170.196) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 13 Oct 2004 06:00:43 -0700 Received: by mproxy.gmail.com with SMTP id 77so987376rnl for ; Wed, 13 Oct 2004 06:00:39 -0700 (PDT) Received: by 10.38.209.30 with SMTP id h30mr782351rng; Wed, 13 Oct 2004 06:00:39 -0700 (PDT) Received: by 10.38.78.16 with HTTP; Wed, 13 Oct 2004 06:00:39 -0700 (PDT) Message-ID: Date: Wed, 13 Oct 2004 09:00:39 -0400 From: Joshua Slive Reply-To: Joshua Slive To: users@httpd.apache.org In-Reply-To: <416D1DAD.20001@zetnet.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <1097669153.17044.ezmlm@httpd.apache.org> <416D1DAD.20001@zetnet.co.uk> X-Virus-Checked: Checked Subject: Re: [users@httpd] Content Negotiation and PHP X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Wed, 13 Oct 2004 13:21:01 +0100, Chris Simon wrote: > I have web hosting with a company called 1&1, running Apache 1.3. > Although their content negotiation appears to be working correctly for > most files (.html, .jpg, .gif etc, and also language negotiation) I > can't work out how to get PHP pages to negotiate. I'm not getting any > help from 1&1 - they won't give advice on user programming! > > As far as I can see, all I should need to do is add the following to my > .htaccess file (I obviously do not have access to the server config files): > > AddType application/x-httpd-php .php > Options +MultiViews > > I've worked this out from searching on the web. But I suspect this > might only be for Apache 2? I have Apache 2 at home and it works > perfectly with the AddType directive in httpd.conf. > > If I call up a file with the .php extension, the page is parsed correctly. > > If a call it without the extension, then I want it to find the file > *with* the extension. But all I get is a 404 Not Found. If you are really getting 404, then the problem is that your Options directive is not applied in the correct place in the config file. See: http://httpd.apache.org/docs/misc/FAQ.html#options You may also be getting a "no acceptable variants" error, in which case you should see: http://tranchant.plus.com/notes/multiviews which should work in 1.3, even though it says it only works in 2.0. 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