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 <[EMAIL PROTECTED]> 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

Reply via email to