A
A
Alex Sokol2018-09-13 08:57:18
1C-Bitrix
Alex Sokol, 2018-09-13 08:57:18

How to make a URL to a product card in Bitrix without specifying a kazdel?

now the url to the product card domen/section_code/element_code/
how to make domen/catalog/element_code/ moreover, the catalog
section does not physically exist
, can there be a rule in urlrewrite.php

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim, 2018-09-13
@Tomio

You either need to place the catalog component in the root index.php file, or place it in a separate include file.
And, accordingly, correctly configure routing in urlrewrite.php: so that when accessing addresses like /catalog/#ELEMENT_CODE#/, Bitrix accesses the catalog component located in index.php or the included file.
Also don't forget to set the paths in the settings of the infoblock and your catalog component.

H
holgert2019, 2019-03-18
@holgert2019

Not everything is so simple: https://aspro.ru/kb/article/40/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question