D
D
dimanche2020-02-12 09:54:48
1C-Bitrix
dimanche, 2020-02-12 09:54:48

Is it possible to create a page (section) of the first level not in the root of the Bitrix site?

You need to create a page with the
required URL - site/voronezh
in the file structure site/goroda/voronezh

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2020-02-12
@Tomio

I think you can try to create the following rule in url_rewrite.php :

array (
    'CONDITION' => '#^\/([a-z0-9-])+$#',
    'RULE' => 'CITY_NAME=$1',
    'ID' => '',
    'PATH' => '/goroda/index.php',
    'SORT' => 100,
  );

and in the /goroda/index.php file, take the value of the $_REQUEST['CITY_NAME'] variable and then substitute it into the component to pull out the desired city.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question