W
W
webname2015-08-14 15:44:54
CMS
webname, 2015-08-14 15:44:54

Adding canonical to Bitrix?

There is a site on Bitrix.
But the seopult finds duplicates on the catalog pages that have pagination.
Rummaged the entire Internet. I didn't find how to set canonical for pages with ?Pagen_1=2...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Сергей, 2015-08-14
@gangstarcj

как могут быть дули, если на страницах разный контент? Можете кастомить компонент пагинация, в нем определяется номер страницы и в резуль модифер указывать нужный каноникал отложенной функцией

Дмитрий Новиков, 2015-09-17
@dmitriy_novikov

In fact, everything is quite simple. I wrote about canonical generation on my blog: dmnv.ru/blog/seo/chto-takoe-canonical-i-ego-generatsiya
You can use the function body from the example. only you will have an excluded get-parameter not "p" but "Pagen_1", or it will not be at all - depending on how you set the task.
Roughly speaking: we take the url of the page, reduce it to lowercase, throw out all the get-parameters except the ones we need, generate a tag, insert it into the head. everything is quite easy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question