A
A
Alexander Ivanov2016-08-09 17:52:55
1C-Bitrix
Alexander Ivanov, 2016-08-09 17:52:55

How to finish multisite on the Bitrix subdomain?

The site works from the test folder
, subdomain test.site.ru
In the main module, there is a checkmark "Distribute authorization to all domains:"

These items are done:
1) add symlinks to the bitrix and upload folder in the folder with the second site
2) create a second site through the admin panel give him the full path to the root to indicate the subdomain on which he should respond.
3) Register the path for the first site and the domain on which it responds.

.htaccess in main directory

RewriteCond %{HTTP_HOST} ^(www\.)?test\.site\.ru$ [NC]
RewriteCond %{REQUEST_URI} !/test
RewriteCond %{REQUEST_URI} !less$ [NC]
RewriteRule (.*) /test/$1 [L]


.htaccess in main test directory working links to urlrewrite.php
RewriteCond %{REQUEST_FILENAME} !urlrewrite.php$
RewriteRule ^(.*)$ urlrewrite.php [L]

CNC is working.

However, the control panel on the second site is not displayed and the user is not identified.
With what it can be connected?

The CNC worked when I copied Urlwrite from the bitrix folder to the test folder and changed .htaccess a little.
Maybe something else should be moved there, which is responsible for determining the authorization status ...
But what and how?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
konopDen, 2016-09-27
@konopDen

If the authorization works with the 'Remember me on this computer' checkbox enabled, there is a problem in sessions.
You can check the work of sessions using phpinfo() or www.1c-bitrix.ru/download/scripts/bitrix_server_test.php. Check if the path in session.save_path is correct.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question