How to map URLs from the old and new website?

0 like 0 dislike
138 views
This:
the old site which has about 400 products, whose URLs are formed like this: name-translit-id(item id in cms)
a new site where all the same products but with slightly different names, which url is changing (and of course the id of the products are completely different)
Should:
to compare items from 2 tables and line print the value of the old and the new URL (e.g. in excel) and based on these data, to register 301 redirects.
by | 138 views

2 Answers

0 like 0 dislike
In General, decided a little different problem. Can someone come in handy
1. Unloaded products from websites to excel
2. Did 2 tables with a list of names and URLs
3. Using the fuzzy lookup add-in with different approximations compared to the value of the items and brought the match in a separate table with new and old URLs
4. All matches thrown in here and received the necessary redirects
by
0 like 0 dislike
If the old and new product are in different iblock
add a property with the id of the new item. in the settings of the information block use the same way.
and on the page where this component is lead, it is necessary to do a redirect:
if you are using a standard component, then do a redirect in result_modifier.php template if the component in-house, then in the code of the component itself

If the information block is one, then there is a little bit problematic. I think that will need to independently prescribe rules in urlrewrite, well, then, as described above
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
110,608 questions
257,187 answers
0 comments
40,796 users