If you want to redirect your old site pages to new opencart 2.x, add the following code to the end of .htaccess:
(the example is from virtuemart to opencart 2.2)
1 2 |
RewriteCond %{THE_REQUEST} /index\.php\?page=shop.browse&category_id=330&option=com_virtuemart&Itemid=2 [NC] RewriteRule ^ https://www.newdomain.com/index.php?route=product/category&path=3_328_408_330 [L,R=302] |