I do something similar, except I keep my cake libraries out of public_html, and you should as well.
Do you have the .htaccess files setup correctly in site1? What I ended up doing was the same type of setup (except I move my cake core out of public_html), but then addon domains rooted at the site1 and site2. With the standard .htaccess that is given to you by the cake library (in same directory as app) should be enough to get what you want. Hope that helps, Nick On Apr 10, 3:55 pm, "Dave" <[email protected]> wrote: > I am trying to run multiple sites off 1 cake lib so i have: > > public_html/ > libs/ > 1.2.6/ > 1.3/ > site1/ > app/ > site2/ > app/ > > with if (!defined('ROOT')) { > define('ROOT', dirname(dirname(dirname(__FILE__)))); > //define('ROOT', DS.'public_html'.DS.'site1'); > } > /** > * The actual directory name for the "app". > * > */ > if (!defined('APP_DIR')) { > //define('APP_DIR', basename(dirname(dirname(__FILE__)))); > define ('APP_DIR', 'app'); > } > /** > * The absolute path to the "cake" directory, WITHOUT a trailing DS. > * > */ > if (!defined('CAKE_CORE_INCLUDE_PATH')) { > //define('CAKE_CORE_INCLUDE_PATH', ROOT); > > define('CAKE_CORE_INCLUDE_PATH', '/home4/public_html/libs/1.2.6'); > > } > > This allows me to access site1.com/ > > But all the links have site1.com/site1/{action} > > Can someone point out where I went wrong? > > Thanks > > Dave Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en To unsubscribe, reply using "remove me" as the subject.
