D
D
dmitry2511902020-01-16 10:10:24
1C-Bitrix
dmitry251190, 2020-01-16 10:10:24

How to convert site url to CNC Bitrix?

Good afternoon! There is a site on Bitrix. The site has a page with information, made from the news list component, when you switch to the full news, a white blank page is displayed. If you specify /inform/detail.php?CODE=#ELEMENT_CODE# as the URL of the detailed view page in the infoblock settings, the detailed view page is displayed normally. But the URL becomes /inform/detail.php?CODE=plan and so on. How to convert such links in CNC /inform/plan/? What needs to be written in urlrewrite or in .htaccess for this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail, 2020-01-16
@RuComMarket

enable page editing
open the component
settings in the component settings enable NC support
in the line where, relative to the site root, specify /inform/
in the element line, specify #ELEMENT_CODE#/
with this approach, the bitra will write the component parameters itself and add rules to urlrewrite

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question