Hi all. I need to remove the section from the URL
site.ru/services/razdel/usluga
And it is necessary
site.ru/services/usluga
Use KK bitrix:catalog
"SEF_URL_TEMPLATES" => array(
"sections" => "",
"section" => "#SECTION_CODE#/",
"element" => "#SECTION_CODE#/#ELEMENT_CODE#/",
"compare" => "compare.php?action=#ACTION_CODE#",
"smart_filter" => "#SECTION_ID#/filter/#SMART_FILTER_PATH#/apply/",
),
The URL of the page information block: #SITE_DIR#/services/
The URL of the page sections: #SITE_DIR#/services/#SECTION_CODE#/
The URL of the page of detailed view: #SITE_DIR#/services/#SECTION_CODE#/#ELEMENT_CODE#/
URLREWRITE:
array(
"CONDITION" => "#^/services/#",
"RULE" => "",
"ID" => "bitrix:catalog",
"PATH" => "/services/index.php",
),
Do:
"SEF_URL_TEMPLATES" => array(
"sections" => "",
"element" => "#ELEMENT_CODE#/"
),
The URL of the page information block: #SITE_DIR#/services/
The URL of the page sections:
The URL of the page of detailed view: #SITE_DIR#/services/#ELEMENT_CODE#/
Ceases to display detailed information.
What else can we do?