Hi, I'm using JoomSEF and the virtuemart plugin. I'm developing a new site to replace on old ecommerce system.
The old url looks like domain.com/index.php?categoryID=79
And the new one looks like domain.com/shop/categoryname
I now need to 301 redirect the old urls to the new ones. Easier said then done!
In my .htaccess I have...
RewriteEngine On
RewriteRule (.*)categoryID=45$ shop/category1 [L,R=301]
RewriteRule (.*)categoryID=46$ shop/category2 [L,R=301]
...but it don't work. It works fine if I omit the '?' from the old url but it seems once there is a query I need to have something else in the .htaccess. I know very little about this subject but I'm guessing I need some
RewriteCond rule in there?
Any guidance would be greatly appreciated!