Answer the question
In order to leave comments, you need to log in
UrlRewrite and CNC component news how to set it up correctly?
Good afternoon.
I ran into a problem, it is necessary that the CNC of the catalog be available not relative to the catalog folder, but relative to the root:
Link now: site.ru/catalog/section/element
It needs to become: site.ru/section/element
I reconfigure the infoblock:
URL страницы информационного блока: #SITE_DIR#/catalog/ (пробовал и убирать catalog)
URL страницы раздела: #SITE_DIR#/catalog/#SECTION_CODE#/ (так же тут убирал catalog)
URL страницы детального просмотра: #SITE_DIR#/catalog/#SECTION_CODE#/#ELEMENT_CODE#/ ( и тут )
Каталог ЧПУ (относительно корня сайта): /catalog/ (тут тоже оставлял и пустое поле и просто "/" пробовал)
Страница раздела: #SECTION_CODE#/
Страница детального просмотра: #SECTION_CODE#/#ELEMENT_CODE#/
#^/articles/# - условие
bitrix:news - компонент
/catalog/index.php - файл
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