S
S
Sergey Rewon2019-04-03 21:36:15
Search Engine Optimization
Sergey Rewon, 2019-04-03 21:36:15

I changed the url to the products, now the search engines lead to the wrong place, what should I do?

Changed the url in the online store (on opencart 2.3).
It was site.ru/tovar_1
It became site.ru/tovar-1
In general, I replaced the underscore with a dash.
Links with underscores now lead to page 404 (site.ru/product_1)
It's been 3 months, and the search engine is still indexing old links.
I don't know how to make a 301 redirect.
Tell me what to do in such a situation, how to do it right so that the search engine indexes new urls.
I will be glad for any help. Thank you in advance.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrey Golubev, 2019-04-04
@AndrewMn

Try this rule in htaccess - RewriteRule ^(.+)(_|\s)(.+)$ /$1-$3 [R=301,L]
This is for a redirect. And then - update sitemap.xml. Everything should work if the redirect works correctly.

K
Kirill Proger, 2019-04-03
@freekirill

1) Recreate the sitemap with new links
2) Check if the robot.txt file is correct
3) Also make redirects from old links to new 301

P
Puma Thailand, 2019-04-04
@opium

Well, make a separate redirect for each product

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question