httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Munday <ian.mun...@illumen.co.uk>
Subject Re: [users@httpd] Redirect a old dynamic URL to a new dynamic URL
Date Mon, 23 Jun 2008 14:11:50 GMT
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=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
Mime
View raw message