R
R
run1822018-05-04 14:06:32
1C-Bitrix
run182, 2018-05-04 14:06:32

How to display the menu when Bitrix is ​​multi-site?

There are 2 domains: site.ru and old.site.rusite.ru and old.site.ru
Created 2 templates for each of them.
The site files are in the s1 and s2 directories.
When accessing site.ru, the .top.menu.php menu is displayed, when going to the site.ru/about page it is not displayed, on the site.ru/s1/about page the menu works.
The problem is only with the menu, all pages are displayed normally.
How can the problem be solved?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Nikolaev, 2018-05-04
@gromdron

The site files are in the s1 and s2 directories.
When accessing site.ru

This is a very bad multisite - done crookedly.
You need to do at least this:
/home/bitrix/www/.top.menu.php
/home/bitrix/www/about/index.php
/home/bitrix/www/s2/.top.menu.php
/home/bitrix /www/s2/about/index.php
And then open the first site by site.ru (SITRE_DIR = /)
And in old.site.ru make SITE_DIR = /s2/
Or, in general, spread it into different folders:
/home/bitrix/www /* - first website
/home/bitrix/ext_www/s2/* - second
website

A
Ainur Valiev, 2018-05-04
@vaajnur

what do you have there in .top.menu.php? give me the code

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question