multiple sites, 1 codebase, using symlinks (with smarty) |
[eluser]E1M2[/eluser]
SOLVED The setup for multi sites using 1 codebase and symlinks works as is on the live server. I have my sub domains (cms.domain.com, id.domain.com) mirrored to the main domain.com. No files are being copied here it's directly linked. CHANGES IN INDEX.PHP (REMOTE SERVER - DOMAIN.COM) Code: // System folder var FOR LOCAL SERVER Had problems due to my use of the REQUEST_URI in order to do a switch for my $application_var locally. My work around for this is simple (...maybe not the best). Instead of depending on '/htdocs/webapp/' (http://192.168.0.3/webapp/) index.php file to filter out the REQUEST_URI and switch the application_folder var. I placed separate index.php files in '/htdocs/webapp/www_cms' and '/htdocs/webapp/www_id'. Instead of trying to access by pointing the brower to http://192.168.0.3/webapp/cms etc., I now access them directly (http://192.168.0.3/webapp/www_cms -OR- http://192.168.0.3/webapp/www_id) LOCAL INDEX.PHP USED Code: // System folder var |
Welcome Guest, Not a member yet? Register Sign In |