IT insight blog

Boost IT troubleshooting

OpenCart 301 Redirect Not Working ?_route_=

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
Redirect 301 /the-old-file.htm


just add below line in .htaccess file:
RewriteRule ^the-old-file.htm$ [R=301,L]


© 2019 IT insight blog.