A
A
Alexander2021-08-06 13:50:50
1C-Bitrix
Alexander, 2021-08-06 13:50:50

How to set up urlrewrite for two directories in Bitrix?

I have 2 directory components on my site, one is in the root, the other is in a separate directory (/services/).
Accordingly, 2 infoblocks (goods and services)

Now, when you enter the services page, a catalog with goods opens.

As I understand it, the urlrewrite.php file should solve my problem. Tell me

how to set it up correctly? Or is it configured elsewhere?
Tried swapping sort key values ​​- doesn't help

array(
    "CONDITION" => "#^/services/#",
    "RULE" => "",
    "ID" => "bitrix:catalog",
    "PATH" => "/services/index.php",
    "SORT" => "1",
  ),
  array(
    "CONDITION" => "#^/#",
    "RULE" => "",
    "ID" => "bitrix:catalog",
    "PATH" => "/index.php",
    "SORT" => "2",
  ),

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2021-08-06
@kikher

See service component settings. You have wrong URL
Or IB settings, check the URL there too. Most likely if they have the same type, then the URL is the same by default

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question