7
OKey for the first instance your addon domain has to point to the public_html directory of the main site.
You will need to set your Name Service to be the same on both services for your hosting provider. The next step is to multisite your mainfile.php which means you need to change the XOOPS_URL to the following this will allow for a dynamic URL to be based on your xoops site.
Line 53 would read as follows:
// XOOPS Virtual Path (URL)
// Virtual path to your main XOOPS directory WITHOUT trailing slash
// Example: define('XOOPS_URL', 'http://127.0.0.1/2.5.0');
define('XOOPS_URL', $http.$_SERVER['HTTP_HOST'].'');
If your URL has a trailing director, say /public for
http://www.yoursite.com/public then the code would on line 53 would read as follows:
// XOOPS Virtual Path (URL)
// Virtual path to your main XOOPS directory WITHOUT trailing slash
// Example: define('XOOPS_URL', 'http://127.0.0.1/2.5.0');
define('XOOPS_URL', $http.$_SERVER['HTTP_HOST'].'/public');
You may also want to use multisite module from my site this will allow you to control aspects of each site with the capabilities of having blocks and other features on particular domains or subdomains.
You can get multisite from here:
Multisite module 1.40Once your DNS is set the same and the addon domain has been added remembering they both need to point to the same XOOPS_ROOT_PATH which is oftern on cpanel the /home/yoursite/public_html path you should have your multisite running fine.