Java Mailing List Archive

http://www.apache-httpd.com/

Home » users.httpd »

[users@httpd] Redirect a old dynamic URL to a new dynamic URL

Ian Munday

2008-06-19

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi,

I'm using Apache 2.2.3 on Debian.

I'm trying to redirect a number of URLs that were generated by an old content management system to those generated by a new content management system.  The parameter values do not map directly, so I simply intend to explicitly redirect the old style URL to the new style URL.

I'm using the .htaccess file and can get it to correct redirect a rule such as:

    Redirect 301 /product1.html http://www.domain.com/index.php?page=shop.browse&category_id=28&option=com_virtuemart&Itemid=32

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

I'd be grateful for any pointers.

Regards,

Ian
©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.