You don't need to use mod_rewrite to share one cake core with multiple apps.
 Instead, in app/webroot/index.php change the following:
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
define('CAKE_CORE_INCLUDE_PATH', ROOT);
}

To

if (!defined('CAKE_CORE_INCLUDE_PATH')) {
define('CAKE_CORE_INCLUDE_PATH', DS . 'path' . DS . 'to' . DS . 'core' );
}

in each of your apps.  The rest will be handled fine.

You can break your app directory out of the server document path as well by
modifying the appropriate lines.

See http://book.cakephp.org/view/35/Advanced-Installation

Jeff

On Tue, Feb 2, 2010 at 9:49 PM, Dave <[email protected]> wrote:

>  I have moved my cake folder and set up multiple apps running 1 cake
> setup.
>
> But my css / images are all going looking in the site root.
>
> My guess is this ss to do withthe htaccess in webroot
>
> <IfModule mod_rewrite.c>
>     RewriteEngine on
>     RewriteRule    ^$    webroot/    [L]
>     RewriteRule    (.*) webroot/$1    [L]
>  </IfModule>
>
> my site1 is actually
>
> www/dev/site1
>
> and my cake is in
>
> www/dev/libs/cake
>
> Any ideas how to fix this?
>
> 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]<cake-php%[email protected]>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

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