Why doesn't it open a detailed view of the news?
-
Beatricks. I've got the next problem. Created a news flock. The news annals are being made as planned, but in an attempt to move on to a detailed view of the news, there's a 404 Not Found error. Explain why and how to decide.
My urlewrite.php file contains the following code:
<?php $arUrlRewrite=array ( 0 => array ( 'CONDITION' => '#^\\/?\\/mobileapp/jn\\/(.*)\\/.*#', 'RULE' => 'componentName=$1', 'ID' => NULL, 'PATH' => '/bitrix/services/mobileapp/jn.php', 'SORT' => 100, ), 1 => array ( 'CONDITION' => '#^/rest/#', 'RULE' => '', 'ID' => NULL, 'PATH' => '/bitrix/services/rest/index.php', 'SORT' => 100, ), 2 => array ( 'CONDITION' => '#^/news/#', 'RULE' => '', 'ID' => 'bitrix:news', 'PATH' => '/news/index.php', 'SORT' => 100, ), );
Infoblock constructions are as follows:
-
- If the urlewrite.php file is automatically generated, you're probably /news/. And in the infrastructures, you indicated /new/ (no S)
- Check the value of the SEF_FOLDER parameter when calling the component, /new/ or /news/
- The structure of the macro-se component should have a detailed page # ELEMENT_CODE#/
https://r-morozov.ru/bitrix/kak-sozdat-stranicu-novostej-na-kompleksnom-komponente-v-bitriks-s-chpu/