Your DOCUMENT_ROOT is defined in the apache configuration file. You have it set correctly to use with cake with DOCUMENT_ROOT as $PATHH_TO_CAKE/app/webroot .. if you changed it cake would operate a bit differently using the url rewrite to redirect to the index in /app/webroot

On 4/28/06, Naonak <[EMAIL PROTECTED]> wrote:

I have problem with online version of my website :

If I do : "echo $_ENV['DOCUMENT_ROOT'];" online

d:/work/www

If I do : "echo $_ENV['DOCUMENT_ROOT'];" online

/home/iciservi/www/dir/app/webroot

In theory, it should be :

/home/iciservi/www

Result, all link generate by the method "baseUrl" of dispatcher class
is wrong ! All generate links are wrong and are like this :

http://www.[...].fr/dir/app/webroot/users/login

Css and _javascript_ are not loaded.


Because my host, I must specify rewrite base in the htaccess
( http://guides.ovh.net/HtaccessModRewrite/) :
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase   /dir
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php5?url="" [QSA,L]
</IfModule>

Do you think, it's source of my problem, what can I do to resolve it ?




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to