B
B
BarneyGumble2021-12-12 00:59:27
Search Engine Optimization
BarneyGumble, 2021-12-12 00:59:27

How to make a separate url for a product card in Bitrix and make a 301 redirect to it from other pages?

The site has several identical product cards in different sections:
https://site.ru/catalog/prazdniki/podarok-1
https://site.ru/catalog/podarochnye_nabory/podarok-1
https://site.ru/catalog /novyy_god/podarok-1
https://site.ru/catalog/na_vse_sluchai/podarok-1
https://site.ru/catalog/8_marta/podarok-1

SEOs complain that search engines perceive this as a duplication of content, because . inside the card is the same information in essence

And they ask to make a common page with the url https://site.ru/podarok-1 and to make a 301 redirect to it from all the above pages. At the same time, it is important that the breadcrumbs are all saved and display the full path to the card

Everything would be fine, but there are thousands of such goods/cards located in different sections but having common content - creating common pages by hand and then doing a 301 redirect on them is definitely not an option

. What are the options in Bitrix to automate this process?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
scottparker, 2021-12-12
@scottparker

it seems like in the catalog component there is a parameter to use the main section, then the products that are linked to different sections will have the same link, regardless of which section to enter. but crumbs then of course from the main section will be

T
tgarl, 2021-12-13
@tgarl

You can do something like this:
create a new page, for example catalog_detail.php
, place a detailed card component on it,
create a rule for processing urls (ideally, then not without a slash at the end, for example https://site.ru/podarok-1.html - the rule will work better)
then we change the component url settings for the detailed card
for sections, you need to get the paths of which section it got into and save it to the session
on the catalog_detail.php page check for the presence of the session and if there are breadcrumbs build from there, no display the path of the main element binding
here something like this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question