>
> Yeah, that all checked out fine.
>
> The reason I am harping on about .htaccess (and I realise I sound like
> a broken record) is that the one in app contains
>
> <IfModule mod_rewrite.c>
>     RewriteEngine on
>     RewriteRule    ^$    webroot/    [L]
>     RewriteRule    (.*) webroot/$1    [L]
> </IfModule>
>

I'm 95% sure that's just for the cases where a user has installed the
cake (regular setup) inside the webroot directory for their server,
just to get the thing pointed at the cake application webroot.


> which looks like it might be relevant to me. But of course, "webroot"
> is no longer the correct location (and I dont know how to fix it), and
> also (as far as I know) this .htaccess is not going to have any effect
> in its current location as it is not under the document root.
>


In the web root you should have a different .htaccess:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>

---- >> all that does is put the request into the value $url in the
index.php file. unless that url is found inside the webroot
directory.

As if instead of having "http://myserver.com/mycontroler/myaction/"; in
your browser, you had: "http://myserver.com/index.php?url=mycontroler/
myaction/".

Index.php Instantiates a class called Dispatcher, which it uses to
direct the request to your app's controllers.

> I tell ya, this Cake thing better prove to be worth the hassle!

I can't promise you anything for you, but for me, barring a few
hiccups here and there, this has been a good thing.

Jeff


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to