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
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
I'd be grateful for any pointers.
Regards,
Ian