Answer the question
In order to leave comments, you need to log in
How to set up the CNC of the Bitrix catalog and redirection?
You need to remove the slash at the end of the line address. those. site.ru/catalog and site.ru/catalog/section
On regular sections with index.php made in .htaccess
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
DirectorySlash Off
RewriteCond %{SCRIPT_FILENAME} -d
RewriteRule ^(.+[^/])$ /$1/ [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !\..{1,10}$
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ https://site.ru/$1/ [L,R=301]
"SEF_URL_TEMPLATES" => array(
"sections" => "",
"section" => "/#SECTION_CODE_PATH#",
"element" => "/#SECTION_CODE_PATH#/#ELEMENT_CODE#",
"compare" => "compare.php?action=#ACTION_CODE#",
"smart_filter" => "/#SECTION_CODE_PATH#/filter/#SMART_FILTER_PATH#/apply/",
),
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question