Answer the question
In order to leave comments, you need to log in
Transferring a site on Bitrix to another directory?
Hello everybody.
I want to move a site on Bitrix to another directory, from /var/www to /var/www/old . A simple transfer does not work, apparently SMS uses an absolute path.
I would like to know where this path can be changed, or is everything solved by backup and reinstallation?
Answer the question
In order to leave comments, you need to log in
Create a subdomain and move the old Bitrix to the root of the new subdomain?
And good afternoon to you.
Immediately solution dev.1c-bitrix.ru/api_help/main/going_remote.php
But it seems that this setting is stored in the database and is defined in the process as SITE_DIR
Reason dev.1c-bitrix.ru/api_help/main/general/site/multisite.php
In general, Bitrix is such a Bitrix ...
Quick fix:
in index.php add the line $_SERVER["DOCUMENT_ROOT"] = '/var/www/old';
in my opinion, this variable is used by Bitrix
If nothing is redefined anywhere, then the directory is taken from document_root, unless explicitly specified in the site settings:
Path to the root folder of the web server for this site
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question