1) in the file inc/header.inc.php change the domain in the line like:
define('BX_DOL_URL_ROOT', 'host1.example.com '); ///< site url
2) go to this area https://una.io/page/my-sites and generate the new key-secret pair for host2.example.com and set this data in Studio->Settings->General area.
3) clear all content from the cache and cache public folders (leave there only .htaccess files).
The line define('BX_DIRECTORY_PATH_ROOT' also has to be changed to reflect your correct folder where the una files are stored because when you created the subdomain, it created the folder una. Also, check your htaccess file to make sure there is no rewritebase reference to domain.com/una
Yes, correct, in this case, you need to change only BX_DOL_URL_ROOT. But if your site is placed in the subfolder then you need to move files and change the BX_DIRECTORY_PATH_ROOT too.
Hello Michael Mansour !
You need to complete 3 actions:
1) in the file inc/header.inc.php change the domain in the line like:
define('BX_DOL_URL_ROOT', 'host1.example.com '); ///< site url
2) go to this area https://una.io/page/my-sites and generate the new key-secret pair for host2.example.com and set this data in Studio->Settings->General area.
3) clear all content from the cache and cache public folders (leave there only .htaccess files).
Thank you, appreciate the response. I'll try this tonight hopefully all goes as planned.
The line define('BX_DIRECTORY_PATH_ROOT' also has to be changed to reflect your correct folder where the una files are stored because when you created the subdomain, it created the folder una. Also, check your htaccess file to make sure there is no rewritebase reference to domain.com/una
also you need to change jot server config to reflect the new domain.
Hello Michell Léon Stjernberg !
Yes, correct, in this case, you need to change only BX_DOL_URL_ROOT. But if your site is placed in the subfolder then you need to move files and change the BX_DIRECTORY_PATH_ROOT too.