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)