Ok I will move the cake libs outside.

What do you mean by set up right for site1?

My problem I think comes from the fact my hosting company sets public_html
as the main site, addon domains each their own folder so I have my
public_html htaccess file directing all traffic to site 1 to site1 folder
Site2 folder is add on so no directing thru htaccess needed (extra config I
mean) 

But based on my index.php info below all my links for site1 end up with
site1 in the url so www.site.com/about becomes www.site.com/site1/about

Will move the libs first then see where I stand.

Thanks,

Dave

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of nurvzy
Sent: April-10-10 9:27 PM
To: CakePHP
Subject: Re: Advanced Set up

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 
cake-php+at http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.

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

Reply via email to