Don't fumble around with index.php UNLESS you deliberately moved the /
cake and /app directories from their original locations.
What you probably want to do is edit the 3 .htaccess files in / , /app
and /app/webroot to look something like this:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /~user/project/trunk/
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
Add the RewriteBase line, with the same path in all three .htaccess
files.
(The path will look somewhat different for you on Windows.)
I can't seem to find the relevant entry in the manual anymore right now.
Is it still there?
On 19 May 2008, at 21:42, vishal wrote:
>
> Hi All,
> I am New user on this community..can any body help me
> please !!!!!
>
> I have problem in setting the path in app/webrot/index.php
>
>
> My cake is installed in:
>
> X:\small_projects\vishal
>
> if (!defined('DS')) {
> define('DS', DIRECTORY_SEPARATOR);
> }
>
> if (!defined('ROOT')) {
>
> define('ROOT', '/home/small_projects/vishal/cake_1.1.19.6305');
> }
> if (!defined('APP_DIR')) {
> //define('APP_DIR', 'DIRECTORY NAME OF APPLICATION');
> define('APP_DIR', 'app');
> }
>
> if (!defined('CAKE_CORE_INCLUDE_PATH')) {
>
> define('CAKE_CORE_INCLUDE_PATH', '/home/small_projects/vishal/
> cake_1.1.19.6305/');
> }
>
>
>
>
> where X:/ drives in my local server 192.168.0.60
>
> so please set my path accordingly..if possible. & please check & edit
> where i am wrong..!!!!
> I am very confuse regarding that.
>
>
> Thanks in advance..!!!
> vishal
>
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---