Answer the question
In order to leave comments, you need to log in
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]
RewriteCond %{REQUEST_FILENAME} !urlrewrite.php$
RewriteRule ^(.*)$ urlrewrite.php [L]
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question