Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 15313 invoked from network); 23 Jun 2008 14:12:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jun 2008 14:12:33 -0000 Received: (qmail 63607 invoked by uid 500); 23 Jun 2008 14:12:24 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 63592 invoked by uid 500); 23 Jun 2008 14:12:24 -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 63581 invoked by uid 99); 23 Jun 2008 14:12:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jun 2008 07:12:24 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=HTML_FONT_FACE_BAD,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.138.141.85] (HELO server1.illumen.co.uk) (83.138.141.85) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jun 2008 14:11:33 +0000 Received: (qmail 4160 invoked from network); 23 Jun 2008 15:11:49 +0100 Received: from dsl-static-81-140-67-147.in-addr.broadbandscope.com (HELO ?192.168.15.68?) (81.140.67.147) by 192.168.1.85 with SMTP; 23 Jun 2008 15:11:49 +0100 Message-Id: <85C8B844-93E3-4CF5-85E2-EC3C32DC0D26@illumen.co.uk> From: Ian Munday To: users@httpd.apache.org In-Reply-To: <20080619172532.67655493@grimnir> Content-Type: multipart/alternative; boundary=Apple-Mail-2--300090757 Mime-Version: 1.0 (Apple Message framework v924) Date: Mon, 23 Jun 2008 15:11:50 +0100 References: <12CE7ADA-2779-4E02-9C61-6C923CAC7EC0@illumen.co.uk> <20080619172532.67655493@grimnir> X-Mailer: Apple Mail (2.924) X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Redirect a old dynamic URL to a new dynamic URL --Apple-Mail-2--300090757 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Hi Nick, Thanks for your response. On 19 Jun 2008, at 17:25, Nick Kew wrote: > On Thu, 19 Jun 2008 15:01:18 +0100 > Ian Munday wrote: > >> I'm using the .htaccess file > > Ouch! That makes for slow and complex. Is there a better way then? >> However, using the old URLs with parameters does not work. I >> wonder if this is a character escape issue, and have tried a few >> variations but have had no joy. As an example, what I am trying to >> do, but that does not work, is: >> >> Redirect 301 /index.php?main_page=index&cPath=28 http://www.domain.com/index.php?page=shop.browse&category_id=28&option=com_virtuemart&Itemid=36 >> Redirect 301 /index.php?main_page=index&cPath=57 http://www.domain.com/index.php?page=shop.browse&category_id=57&option=com_virtuemart&Itemid=36 > > Indeed, that's the point where you need RewriteRule rather than > Redirect[1]. If you have access to httpd.conf, you should also look > at RewriteMap. Can you point me at some examples of RewriteRule for what I'm trying to do above. I've looked at the documentation at http://httpd.apache.org/docs/2.0/misc/rewriteguide.html , but don't see an example of this nature. Or am I missing something obvious? Regards, Ian --Apple-Mail-2--300090757 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
Hi = Nick,

Thanks for your = response.

On 19 Jun 2008, at 17:25, Nick Kew = wrote:

On Thu, 19 Jun 2008 15:01:18 +0100
Ian Munday = <ian.munday@illumen.co.uk> = wrote:

I'm using the .htaccess = file

Ouch!  That makes for slow and = complex.

Is there a better way = then?


However, using the old = URLs with parameters does not work.  I wonder if this is a = character escape issue, and have tried a few variations but have had no = joy.  As an example, what I am = trying to do, but that does not work, = is:
    Redirect = 301 /index.php?main_page=3Dindex&cPath=3D28 http://www.domain.com/index.php?page=3Dshop.brows= e&category_id=3D28&option=3Dcom_virtuemart&Itemid=3D36
    Redirect = 301 /index.php?main_page=3Dindex&cPath=3D57 http://www.domain.com/i= ndex.php?page=3Dshop.browse&category_id=3D57&option=3Dcom_virtuema= rt&Itemid=3D36

Indeed, that's the point where you need RewriteRule rather = than Redirect[1].  If you have access to httpd.conf, you = should also look at = RewriteMap.

Can you point me at some = examples of RewriteRule for what I'm trying to do above.  I've = looked at the documentation at http://ht= tpd.apache.org/docs/2.0/misc/rewriteguide.html, but don't see an = example of this nature.  Or am I missing something = obvious?

Regards,

Ian
<= /html>= --Apple-Mail-2--300090757--