Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 75357 invoked from network); 6 Jan 2009 15:29:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jan 2009 15:29:55 -0000 Received: (qmail 90446 invoked by uid 500); 6 Jan 2009 15:29:45 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 90431 invoked by uid 500); 6 Jan 2009 15:29:45 -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 90422 invoked by uid 99); 6 Jan 2009 15:29:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jan 2009 07:29:45 -0800 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 mearns.b@gmail.com designates 209.85.217.29 as permitted sender) Received: from [209.85.217.29] (HELO mail-gx0-f29.google.com) (209.85.217.29) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jan 2009 15:29:36 +0000 Received: by gxk10 with SMTP id 10so1030927gxk.0 for ; Tue, 06 Jan 2009 07:29:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=i7xdaxA6FPehMLq8w3ppNTaMnNmiivZICAU2b7fbM2w=; b=XZ4MUOuXRQ9pRd65hg8Z9Y+7rLz88U8rnhExhGu6Er67P/P6tOH0NBYXkaCxg24V7q jsQzM207Y/scj5DH+nCFmHCfh7u60jV5ep2qNw3k0p4YzqNvpTiTyim2iSxgxh/6zwsi 1Bp3RODIPnfc5ZBRnTD0dItrrfkdV02tSZCSo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=B/Nn6xhk/OcBcrUYe1pzX/FP3+WbYU126xWwqWwhBZDuXLbBXwwkuxdfjM3aIOBm11 yI3o1fc9OPXB0eY3buk48gLMsdYc4zOtj/8Y6RW3/RAN6y80buQMLX7KfbT5jNqWWPBv a9m0h8NvKToKmhJ6Ae61F39cV+2IZ7FMD56GU= Received: by 10.151.6.2 with SMTP id j2mr11492992ybi.21.1231255755288; Tue, 06 Jan 2009 07:29:15 -0800 (PST) Received: by 10.150.54.1 with HTTP; Tue, 6 Jan 2009 07:29:15 -0800 (PST) Message-ID: <4df3a1330901060729t580a6488y12d5bb166bd20547@mail.gmail.com> Date: Tue, 6 Jan 2009 10:29:15 -0500 From: "Brian Mearns" To: users@httpd.apache.org In-Reply-To: <567ebed20901060258s6ea0a48dx5cf35ca869d477c1@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <567ebed20901060225s58b5b33bufdedb7943de47635@mail.gmail.com> <6ed6382b0901060242i78ad8739ma8fca514def9c8c0@mail.gmail.com> <567ebed20901060258s6ea0a48dx5cf35ca869d477c1@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] 301 Redirect problem on Apache 2.0.50 No, it sounds like you're attempting to do what is already being done. As Krist said, any of those urls you specified will cause Apache to invoke PHP for topic-guide.php, passing the URL specified section value in the $_GET super global. To illustrate this, just create a file on your server, say test.php, with these 6 lines: No browse to that page like: http://www.mydomain.com/test.php http://www.mydomain.com/test.php?section=1 http://www.mydomain.com/test.php?section=2 http://www.mydomain.com/test.php?section=3 Is that what you're looking for, or did I miss the point? -Brian -- Feel free to contact me using PGP Encryption: Key Id: 0x3AA70848 Available from: http://pgp.mit.edu/ On Tue, Jan 6, 2009 at 5:58 AM, Channel Five wrote: > Thanks Krist.. > > So basically I'm attempting the impossible? > > On Tue, Jan 6, 2009 at 10:42 AM, Krist van Besien > wrote: >> >> On Tue, Jan 6, 2009 at 11:25 AM, Channel Five >> wrote: >> > Hi >> > >> > I have the following URL's >> > >> > http://www.mydomain.com/topic-guide.php >> > http://www.mydomain.com/topic-guide.php?section=2 >> > http://www.mydomain.com/topic-guide.php?section=3 >> > http://www.mydomain.com/topic-guide.php?section=4 >> >> You have one url, with an optional parameter, called "section". This >> parameter is handled by your php script. >> >> > I want to redirect all those ending in ?section=x to >> > >> > http://www.mydomain.com/topic-guide.php >> >> This is already done. Any URL of the form: >> http://www.mydomain.com/topic-guide.php? will cause apache >> to process topic-guide.php, with whatever passed as arguments passed >> on to the script. It is up to your script to deal with the arguments. >> >> Krist >> >> >> -- >> krist.vanbesien@gmail.com >> krist@vanbesien.org >> Bremgarten b. Bern, Switzerland >> -- >> A: It reverses the normal flow of conversation. >> Q: What's wrong with top-posting? >> A: Top-posting. >> Q: What's the biggest scourge on plain text email discussions? >> >> --------------------------------------------------------------------- >> 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 >> > > --------------------------------------------------------------------- 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