N
N
neonox2014-08-28 16:24:24
Search Engine Optimization
neonox, 2014-08-28 16:24:24

How to set up a 301 redirect in Opencart?

Good afternoon!
There is OC 1.5.5.1 with Palladin SEO Manager installed.
There is a need to make a 301 redirect from site.ru/old-category/category2 to site.ru/new-category/category2
Added this rule:
Redirect 301 /old-category/category2 site.ru/new-category/category2
Redirect works, but I get this url: site.ru/new-category/category2?_route_=/old-catego...
How to get rid of ?_route_=/old-category/category2?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Dmitry, 2014-08-28
@neonox

RewriteCond %{QUERY_STRING} ^_route_=OLDPAGE$
RewriteRule ^(.*)$ http://test.ru/NEWPAGE? [R=301,L]

E
Elena, 2014-08-28
@Nidora

RewriteRule old-category/(.*)$ new-category/$1 [R=301,L]

T
Technomall, 2016-01-13
@Technomall

The same problem...
I can't make a 301 Redirect, or I'm doing something wrong. Version
2.0.3.1 of
Opencart
_ _ . And what's the best way to do it? upload a new site to the main domain and make a redirect, or first make a redirect and then upload to the main domain? Thank you in advance!

P
piro57, 2017-01-24
@piro57

The same problem...
I can't make a 301 Redirect, or I'm doing something wrong.
Version 2.0.3.1 Opencart
What specifically needs to be written so that from the page
2031.technol.com/namecatalog/nametowar
it gets to
2031.technol.com/nametowar
The fact is that the same product is obtained under different links, and this is a duplicate content. This, as I understand it, is critical for website promotion ..
How to make a product open by one link?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question