A
A
Alexander Ivanov2016-04-20 17:00:17
1C-Bitrix
Alexander Ivanov, 2016-04-20 17:00:17

Why doesn't URwrite work for a component?

In .htaccess

<IfModule mod_rewrite.c>
....
  RewriteRule ^/calendar/([0-9]+)/([0-9]+)/$ ?year=$1&month=$2
</IfModule>

In urlrewrite_edit.php
cdc322ced94a49c1b95fa8282bc86db6.png
array(
    "CONDITION" => "#^/calendar//calendar/([0-9]+)/([0-9]+)/#",
    "RULE" => "YEAR=\$1&MONTH=\$2",
    "ID" => "bitrix:news.calendar",
    "PATH" => "/calendar/index.php",
  ),

Api - https://dev.1c-bitrix.ru/api_help/main/general/url...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question