On Sep 26, 10:07 pm, nobrow <[EMAIL PROTECTED]> wrote:
> On Sep 26, 10:02 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
>
>
> > > 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
>
> Hmm. The longhand version of the URL with the variable works. I guess
> that confirms its a problem with rewriting ...
Solved. In /etc/apache2/vhosts.d/cake-test.conf, under <Directory "/
var/www/webroot/cake-test/html"> I had "AllowOverride None" instead of
"All".
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---