Hello guyz, this post is regarding 301 Redirects with OpenCart 1.5 / 1.5.1 greater or Opencart 2.0 or greater.
Are you having a problem with your OpenCart SEO? Are you trying to add 301 Redirects?
Are you getting ?_route_= added to the end of your redirects and Error Not Found Message?
There are two ways to fix, that will work, it does however still change the target URL, you have to add an ?, yes a question mark!
Here’s an example of what you need to use for a 301 Redirect in OpenCart .htaccess file:
Redirect 301 /the-old-file.htm http://www.yourdomain.com/new-product-url?
Redirect 301 /the-old-file.htm http://www.yourdomain.com/new-product-url/?
just add below line in .htaccess file:
RewriteRule ^the-old-file.htm$ http://www.yourdomain.com/new-product-url [R=301,L]