Hi,
I new to cake and trying to install it using the advanced installation
so only have one copy of the 'cake' directory to use for all my
projects.
The directory structure I use is:
/home
/protected (- location of '/cake' directory)
/public (- where all public content lives)
/help.felixfennell.co.uk
/app
{STANDARD APP FOLDERS}
/webroot
{STANDARD WEBROOT STUFF}
-index.php
-.htaccess
-index.php
-.htaccess
-index.php
-.htaccess
/www.felixfennell.co.uk
/{STATIC CONTENT}
The protected directory is accessible only to the webserver and not to
the outside world.
The public directory contains a folder for each domain and uses
a .htaccess file to redirect the request to the correct folder as
listed by my webhost's wiki:
RewriteEngine on
RewriteCond %{ENV:REDIRECT_ENTEREDSITE} !=1
RewriteCond %{ENV:REDIRECT_REDIRECT_ENTEREDSITE} !=1
RewriteRule ^.*$ %{HTTP_HOST}/$0 [env=ENTEREDSITE:1] [last]
The redirect works fine as does setting the location of '/cake' folder
to the protected folder:
/**
* The absolute path to the "cake" directory, WITHOUT a trailing DS.
*
*/
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
define('CAKE_CORE_INCLUDE_PATH', $_SERVER['NFSN_SITE_ROOT'] .
DS.'protected');
}
However what I CAN NOT set directly is the location of the webroot
folder.
It is currently located at: (/home/public/help.felixfennell.co.uk/)
app/webroot (indicates not visible in URL)
When viewing the default installation page the CSS file is trying to
be got from:
http://help.felixfennell.co.uk/help.felixfennell.co.uk/app/webroot/css/cake.generic.css
for example to get the css file of the installation page.
This is clearly wrong and should just be:
http://help.felixfennell.co.uk/css/cake.generic.css
What I can't work out is how to change this, I have tried setting both
WWW_ROOT and WWWROOT_DIR but whatever change I make doesn't seem to
have any effect to the URL the page generates.
What must I set to make this work as it should?
My current index.php (the webroot one) is located here:
http://snipt.net/fenfe1/webroot-of-cakephp
Sorry for such a long post but I wanted to be as clear as possible!
Thanks, Felix
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