A
A
Andrey Eskov2017-07-25 11:47:24
1C-Bitrix
Andrey Eskov, 2017-07-25 11:47:24

What is wrong with the CNC setup of the product catalog (catalog)?

Hi all. Tell me if it’s not configured correctly or is it Bitrix)))
There are the following CNC settings for the product catalog

"SEF_MODE" => "Y",
"SEF_FOLDER" => "/catalog/",
"SEF_URL_TEMPLATES" => array(
    "sections" => "catalog/",
    "section" => "#SECTION_CODE#/",
    "element" => "#SECTION_CODE#/#ELEMENT_CODE#/",
    "compare" => "compare/?action=#ACTION_CODE#",
    "smart_filter" => "#SECTION_CODE_PATH#/filter/#SMART_FILTER_PATH#/",
),

Well, or so, to whom it is more convenient
8b926ace6747468e9c61cbe08be17fb3.png
So now my CNC works a little strangely.
Category addresses
/catalog/category1/ - Works
/catalog/category1 - 404 (No slash at the end)
Product addresses
/catalog/category1/product/ - Works
/catalog/category1/product - 404 (No slash at the end)
/catalog/ VINIPUKH / product / - Anything to write in the product category block will still open the product.
There are a lot of duplicates on the site. Did I set something up wrong, or is it still a feature of Bitrix and how to solve this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Mifle, 2017-07-25
@taurus2790

The fact that a page with a slash at the end and one without is essentially a different page is correct. You can set up a redirect in .htaccess.
You can try to get rid of duplicate products by setting the parameter "DETAIL_STRICT_SECTION_CHECK => 'Y'" in the settings of the catalog component. But, if the goods are in several sections, then this will not help and you will have to check the existence of the goods "by hand".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question