R
R
rinatoptimus2021-08-04 13:25:30
1C-Bitrix
rinatoptimus, 2021-08-04 13:25:30

How to hide pagination pages from indexing in Bitrix?

The section has a pagination of 5 pages. You need to hide pages 2 to 5 with a meta tag .
<meta name="robots" content="noindex, follow" />

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
rinatoptimus, 2021-08-04
@rinatoptimus

As a result, I wrote in header.php:

$url = 'https://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
if (strpos($url,'emali/?PAGEN_') !== false) {
    $APPLICATION->SetPageProperty("robots", "noindex, nofollow");
}

Because it was necessary to hide pagination pages in a certain section.
If you hide pagination pages from indexing on the entire site:
if ($_GET['PAGEN_1']) {
    $APPLICATION->SetPageProperty("robots", "noindex, nofollow");
}

A
Alexander, 2021-08-04
@idruweb

if (pagination->pageNum!=1) {
$APPLICATION->SetPageProperty("robots", "noindex, nofollow");
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question